| java.lang.Object org.wings.util.SessionLocal
SessionLocal | public class SessionLocal (Code) | | A helper class for storing session local variables similar to
ThreadLocal for thread local variables.
|
SessionLocal | public SessionLocal()(Code) | | |
get | public T get()(Code) | | return the current value of this variable from the session
The current value or the result of SessionLocal.initialValue() if called for the first time. |
initialValue | protected T initialValue()(Code) | | override this method to get the initial value for a new session
The stored value |
remove | public void remove()(Code) | | remove the value,
if get is called, the value will be reinitialized
|
set | public void set(T value)(Code) | | Set the value. the value which is set may be null,
but the object set is never null because it is wrapped.
Parameters: value - Value. null is also a valid value. |
|
|