Interface DynamicClassLoaderProvider

  • @Deprecated
    public interface DynamicClassLoaderProvider
    The dynamic class loader provider is not supported anymore and any service implementing this is not considered for dynamic class loading anymore!
    A dynamic class loader provider allows to provide class loaders that will be used by the dynamic class loading mechanism. For instance a JCR class loader provider could provide some class loader loading classes from a content repository etc.
    • Method Detail

      • getClassLoader

        ClassLoader getClassLoader​(ClassLoader parent)
        Return the class loader used for dynamic class loading. The returned class loader should use the provided parent class loader as one of its parent class loaders. This ensures that the returned class loader has access to all dynamically loaded classes that are not part of this class loader. When the class loader is not needed anymore, it is released by calling the release(ClassLoader) method.
        parent - The parent class loader for this dynamic class loader.
        The class loader.
        See Also:
      • release

        void release​(ClassLoader classLoader)
        Release the provided class loader. When the class loader is not needed anymore, e.g. when the dynamic class loader is shutdown, it is released with this method. The implementation can use this hook to free any allocated resources etc.
        classLoader - The class loader.
        See Also: