ClassLoaderPool@Deprecated
public class ClassLoaderPool
extends java.lang.Object
| Constructor and Description |
|---|
ClassLoaderPool()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.ClassLoader |
getClassLoader(java.lang.String contextName)
Deprecated.
Returns the class loader associated with the context name.
|
static java.lang.String |
getContextName(java.lang.ClassLoader classLoader)
Deprecated.
Returns the context name associated with the class loader.
|
static void |
register(java.lang.String contextName,
java.lang.ClassLoader classLoader)
Deprecated.
|
static void |
unregister(java.lang.ClassLoader classLoader)
Deprecated.
|
static void |
unregister(java.lang.String contextName)
Deprecated.
|
public static java.lang.ClassLoader getClassLoader(java.lang.String contextName)
If no class loader is found for the context name, the thread's context class loader is returned as a fallback.
contextName - the servlet context's namepublic static java.lang.String getContextName(java.lang.ClassLoader classLoader)
If the class loader is null or if no context name is
associated with the class loader, StringPool# is
returned.
NULL
classLoader - the class loaderpublic static void register(java.lang.String contextName,
java.lang.ClassLoader classLoader)
public static void unregister(java.lang.ClassLoader classLoader)
public static void unregister(java.lang.String contextName)