Skip navigation links
com.stellent.cis.common.classloader
Class ContextLoaderSwitcher
java.lang.Object
com.stellent.cis.common.classloader.ContextLoaderSwitcher
-
public class ContextLoaderSwitcher
- extends java.lang.Object
Allows switching of the context classloader between a custom and already defined loader.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_customLoader
protected java.lang.ClassLoader m_customLoader
m_contextLoader
protected java.lang.ThreadLocal m_contextLoader
ContextLoaderSwitcher
public ContextLoaderSwitcher(java.lang.ClassLoader customLoader)
setCustomLoader
public void setCustomLoader()
- Set the custom loader
getCustomLoader
public java.lang.ClassLoader getCustomLoader()
-
- Returns:
- the custom class loader associated with this switcher
isCustomLoaderSet
public boolean isCustomLoaderSet()
-
- Returns:
- true if the custom classloader is set
restoreContextLoader
public void restoreContextLoader()
- Restore the context loader
Skip navigation links
Copyright © 1996, 2010, Oracle and/or its affiliates. All rights reserved.