|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.universal.glassfish.GFSystem
public final class GFSystem
A replacement for System Properties An InheritableThreadLocal is used to store the "impl". This means that the initial thread that uses this class -- and all its sub-threads will get the same System Properties. Make sure that you don't create it from the main Thread -- otherwise all instances will get the same props. E.g. main thread creates instance1-thread and instance2-thread The 2 created threads should each call init() -- but the main thread should not. In the usual case where there is just one instance in the JVM -- this class is also perfectly usable. Just call any method when you need something.
| Constructor Summary | |
|---|---|
GFSystem()
|
|
| Method Summary | |
|---|---|
static java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Get the GFSystem Properties |
static java.lang.String |
getProperty(java.lang.String key)
Get a GF System Property |
static void |
init()
|
static void |
setProperty(java.lang.String key,
java.lang.String value)
Set a GF System Property, null is acceptable for the name and/or value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GFSystem()
| Method Detail |
|---|
public static final void init()
public static final java.util.Map<java.lang.String,java.lang.String> getProperties()
public static final java.lang.String getProperty(java.lang.String key)
key - the name of the property
public static final void setProperty(java.lang.String key,
java.lang.String value)
key - the name of the propertyvalue - the value of the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||