Class LoadedFunctionPackage

  • All Implemented Interfaces:
    ValidatableFunctionPackage

    public class LoadedFunctionPackage
    extends java.lang.Object
    implements ValidatableFunctionPackage
    LoadedFunctionPackage is a class that represents a function package and implements the ValidatableFunctionPackage interface which decouples the function package from classloading. This implementation is backed by a ClassLoader, and it is used when the function package is already loaded by a ClassLoader. This is the case in the LocalRunner and in some of the unit tests.
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadedFunctionPackage​(java.lang.ClassLoader classLoader, java.lang.Class<?> configMetadataClass)  
      LoadedFunctionPackage​(java.lang.ClassLoader classLoader, java.lang.Class<T> configMetadataClass, T configMetadata)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader getClassLoader()
      Returns the classloader for the function package.
      <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.
      net.bytebuddy.description.type.TypeDescription resolveType​(java.lang.String className)
      Resolves the type description for the given class name within the function package.
      • Methods inherited from class java.lang.Object

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

      • LoadedFunctionPackage

        public LoadedFunctionPackage​(java.lang.ClassLoader classLoader,
                                     java.lang.Class<T> configMetadataClass,
                                     T configMetadata)
      • LoadedFunctionPackage

        public LoadedFunctionPackage​(java.lang.ClassLoader classLoader,
                                     java.lang.Class<?> configMetadataClass)