|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.servlet.util.ClassLoaderStack
@Deprecated public class ClassLoaderStack
This utility provides a thread local stack of ClassLoaders.
The current "top" of the stack is the thread's current context class loader.
This can be used when implementing delegating plugin Filters or Servlets
that need to set the ClassLoader to the PluginClassLoader the filter
or servlet is declared in.
| Constructor Summary | |
|---|---|
ClassLoaderStack()
Deprecated. |
|
| Method Summary | |
|---|---|
static ClassLoader |
pop()
Deprecated. Pops the current ContextClassLoader off the stack, setting the new ContextClassLoader to the previous one on the stack. |
static void |
push(ClassLoader loader)
Deprecated. Makes the given classLoader the new ContextClassLoader for this thread, and pushes the current ContextClassLoader onto a ThreadLocal stack so that we can do a pop() operation later to return to that ContextClassLoader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderStack()
| Method Detail |
|---|
public static void push(ClassLoader loader)
pop() operation later to return to that ContextClassLoader.
Passing null is allowed and will act as a no-op. This means that you can safely pop() a ClassLoader and push(java.lang.ClassLoader) it back in
and it will work safely whether the stack was empty at time of pop() or not.
loader - The new ClassLoader to set as ContextClassLoader.public static ClassLoader pop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||