abstract class ContextClassloaderLocal<V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.WeakHashMap<java.lang.ClassLoader,V> |
CACHE |
private static java.lang.String |
FAILED_TO_CREATE_NEW_INSTANCE |
Constructor and Description |
---|
ContextClassloaderLocal() |
Modifier and Type | Method and Description |
---|---|
private V |
createNewInstance() |
private static java.lang.String |
format(java.lang.String property,
java.lang.Object... args) |
V |
get() |
private static java.lang.ClassLoader |
getContextClassLoader() |
protected abstract V |
initialValue() |
void |
set(V instance) |
private static final java.lang.String FAILED_TO_CREATE_NEW_INSTANCE
private java.util.WeakHashMap<java.lang.ClassLoader,V> CACHE
public V get() throws java.lang.Error
java.lang.Error
public void set(V instance)
protected abstract V initialValue() throws java.lang.Exception
java.lang.Exception
private V createNewInstance()
private static java.lang.String format(java.lang.String property, java.lang.Object... args)
private static java.lang.ClassLoader getContextClassLoader()