|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jms.util.ThreadContextClassLoaderChanger
A thread context classloader changer. This class is an abomination. It is here for experimental purposes only. The way it changes the class loader (and more important, the way it stores the saved thread context class loader) is inneficient and dangerous. TODO: Do not use it in the production version. See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=74434 for an alternative solution.
Constructor Summary | |
ThreadContextClassLoaderChanger()
|
Method Summary | |
void |
restore()
Use it from a finally block. |
void |
set(java.lang.ClassLoader cl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadContextClassLoaderChanger()
Method Detail |
public void set(java.lang.ClassLoader cl)
public void restore()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |