|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.loader.EnvironmentLocal<E>
public class EnvironmentLocal<E>
Creates a ClassLoader dependent variable. The value of the ClassLoaderLocal variable depends on the context ClassLoader.
Constructor Summary | |
---|---|
EnvironmentLocal()
Creates a new environment local variable with an anonymous identifier. |
|
EnvironmentLocal(java.lang.String varName)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentLocal()
public EnvironmentLocal(java.lang.String varName)
Method Detail |
---|
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 value
public final E set(E value, java.lang.ClassLoader loader)
value
- the new value
public final E remove()
public final E remove(java.lang.ClassLoader loader)
public E setGlobal(E value)
value
- the new value
public E getGlobal()
public static java.lang.ClassLoader getSystemClassLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |