Interface ClassLoaderAware

    • Method Detail

      • getContextClassLoader

        ClassLoader getContextClassLoader()
        Retrieve the context ClassLoader for this object. The context ClassLoader is provided by the creator of the object for use by the object when loading classes and resources.
        Returns:
        the context ClassLoader for this object
        See Also:
        Thread.getContextClassLoader()
      • setContextClassLoader

        void setContextClassLoader​(ClassLoader loader)
        Specify the context ClassLoader for this object. The context ClassLoader can be set when the object is created, and allows the creator to provide the appropriate class loader to be used by the object when when loading classes and resources.
        Parameters:
        loader - the context ClassLoader for this object