Package org.zkoss.lang

## 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 Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.ClassLoader` | `getContextClassLoader​(java.lang.Class<?> reference)` | Returns the context ClassLoader for the reference class.
    `java.lang.ClassLoader` | `getContextClassLoaderForName​(java.lang.String className)` | Returns the context ClassLoader for a class name.

- - ### Method Detail

    - #### getContextClassLoader

          java.lang.ClassLoader getContextClassLoader​(java.lang.Class<?> reference)

      Returns the context ClassLoader for the reference class.
      Parameters:
        `reference` - the reference class where it is invoked from.

    - #### getContextClassLoaderForName

          java.lang.ClassLoader getContextClassLoaderForName​(java.lang.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