public final class ThreadClassLoaderManager extends Object
Modifier and Type | Method and Description |
---|---|
static void |
clearInstance()
Clear the thread-local instance of the manager.
|
ClassLoader |
getCurrentClassLoader()
Returns the current thread-local class loader
|
static ThreadClassLoaderManager |
getInstance()
Returns the thread-local instance of the manager
|
List<ClassLoader> |
popAll()
Hack for OIM.
|
void |
popClassLoader()
Restores the previous loader as the thread-local classloader.
|
void |
pushAll(List<ClassLoader> loaders)
Hack for OIM.
|
void |
pushClassLoader(ClassLoader loader)
Sets the given loader as the thread-local classloader.
|
public static ThreadClassLoaderManager getInstance()
public static void clearInstance()
public void pushClassLoader(ClassLoader loader)
loader
- The class loader. May be null.public void popClassLoader()
public List<ClassLoader> popAll()
public void pushAll(List<ClassLoader> loaders)
loaders
- the loaders to push; never null.public ClassLoader getCurrentClassLoader()
Copyright © 2019. All rights reserved.