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
Modifier and TypeMethodDescriptiongetContextClassLoader(Class<?> reference) Returns the context ClassLoader for the reference class.getContextClassLoaderForName(String className) Returns the context ClassLoader for a class name.
-
Method Details
-
getContextClassLoader
Returns the context ClassLoader for the reference class.- Parameters:
reference- the reference class where it is invoked from.
-
getContextClassLoaderForName
Returns the context ClassLoader for a class name.- Parameters:
className- the reference class name where it is invoked from.- Since:
- 8.5.1
-