|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.util.SessionLocal<T>
public class SessionLocal<T>
A helper class for storing session local variables similar to ThreadLocal for thread local variables.
| Constructor Summary | |
|---|---|
SessionLocal()
|
|
| Method Summary | |
|---|---|
T |
get()
return the current value of this variable from the session |
protected T |
initialValue()
override this method to get the initial value for a new session |
void |
remove()
remove the value, if get is called, the value will be reinitialized |
void |
set(T value)
Set the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionLocal()
| Method Detail |
|---|
public T get()
initialValue() if called for the first time.protected T initialValue()
public void set(T value)
value - Value. null is also a valid value.public void remove()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||