Interface ContextClassLoaderFactory


public interface ContextClassLoaderFactory
An interface to provide a pluggable context class loader, which is used for Classes.getContextClassLoader(Class) and Classes.getContextClassLoaderForName(String)
Since:
8.0.2
Author:
jumperchen
  • Method Details

    • getContextClassLoader

      ClassLoader getContextClassLoader(Class<?> reference)
      Returns the context ClassLoader for the reference class.
      Parameters:
      reference - the reference class where it is invoked from.
    • getContextClassLoaderForName

      ClassLoader getContextClassLoaderForName(String className)
      Returns the context ClassLoader for a class name.
      Parameters:
      className - the reference class name where it is invoked from.
      Since:
      8.5.1