Class FunctionFilePackage

  • All Implemented Interfaces:
    java.lang.AutoCloseable, ValidatableFunctionPackage

    public class FunctionFilePackage
    extends java.lang.Object
    implements java.lang.AutoCloseable, ValidatableFunctionPackage
    FunctionFilePackage is a class that represents a function package and implements the ValidatableFunctionPackage interface which decouples the function package from classloading.
    • Constructor Summary

      Constructors 
      Constructor Description
      FunctionFilePackage​(java.io.File file, java.lang.String narExtractionDirectory, boolean enableClassloading, java.lang.Class<?> configClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.ClassLoader getClassLoader()
      Returns the classloader for the function package.
      java.io.File getFile()  
      <T> T getFunctionMetaData​(java.lang.Class<T> clazz)
      Returns the function or connector definition metadata.
      net.bytebuddy.pool.TypePool getTypePool()
      Returns the Byte Buddy TypePool instance for the function package.
      boolean isEnableClassloading()
      Returns if classloading is enabled for the function package.
      boolean isNar()  
      net.bytebuddy.description.type.TypeDescription resolveType​(java.lang.String className)
      Resolves the type description for the given class name within the function package.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FunctionFilePackage

        public FunctionFilePackage​(java.io.File file,
                                   java.lang.String narExtractionDirectory,
                                   boolean enableClassloading,
                                   java.lang.Class<?> configClass)
    • Method Detail

      • resolveType

        public net.bytebuddy.description.type.TypeDescription resolveType​(java.lang.String className)
        Description copied from interface: ValidatableFunctionPackage
        Resolves the type description for the given class name within the function package.
        Specified by:
        resolveType in interface ValidatableFunctionPackage
      • isNar

        public boolean isNar()
      • getFile

        public java.io.File getFile()
      • getFunctionMetaData

        public <T> T getFunctionMetaData​(java.lang.Class<T> clazz)
        Description copied from interface: ValidatableFunctionPackage
        Returns the function or connector definition metadata. Supports FunctionDefinition and ConnectorDefinition as the metadata type.
        Specified by:
        getFunctionMetaData in interface ValidatableFunctionPackage
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object