public class EnvironmentLocal<E>
extends java.lang.Object
Constructor and Description |
---|
EnvironmentLocal()
Creates a new environment local variable with an anonymous identifier.
|
EnvironmentLocal(java.lang.String varName) |
Modifier and Type | Method and Description |
---|---|
E |
get()
Returns the variable for the context classloader.
|
E |
get(java.lang.ClassLoader loader)
Returns the variable for the context classloader.
|
E |
getGlobal()
Returns the global value.
|
E |
getLevel()
Returns the variable for the context classloader.
|
E |
getLevel(java.lang.ClassLoader loader)
Returns the variable for the context classloader.
|
static java.lang.ClassLoader |
getSystemClassLoader() |
java.lang.String |
getVariable() |
E |
remove()
Removes this variable
|
E |
remove(java.lang.ClassLoader loader)
Removes the variable for the context classloader.
|
E |
set(E value)
Sets the variable for the context classloader.
|
E |
set(E value,
java.lang.ClassLoader loader)
Sets the variable for the context classloader.
|
E |
setGlobal(E value)
Sets the global value.
|
public EnvironmentLocal()
public EnvironmentLocal(java.lang.String varName)
public java.lang.String getVariable()
public E get()
public E get(java.lang.ClassLoader loader)
public E getLevel()
public E getLevel(java.lang.ClassLoader loader)
public final E set(E value)
value
- the new valuepublic final E set(E value, java.lang.ClassLoader loader)
value
- the new valuepublic final E remove()
public final E remove(java.lang.ClassLoader loader)
public E setGlobal(E value)
value
- the new valuepublic E getGlobal()
public static java.lang.ClassLoader getSystemClassLoader()