public class SessionLocal<T extends Serializable> extends Object
Session. This class is like a
ThreadLocal but takes the wicket Session instead of a local thread as context. When the
wicket Session is timed out than the
SessionLocal will be destroyed.| Constructor and Description |
|---|
SessionLocal(org.apache.wicket.MetaDataKey<T> key)
Constructor that takes a
MetaDataKey that is used to store an
object. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Sets the object to null in the
MetaDataEntry. |
T |
get()
Gets the object from the
MetaDataEntry. |
void |
set(T value)
Sets the given object in the
MetaDataEntry. |
public SessionLocal(org.apache.wicket.MetaDataKey<T> key)
MetaDataKey that is used to store an
object.key - The MetaDataKey that is used to store an object.public void clear()
MetaDataEntry.public T get()
MetaDataEntry.MetaDataEntry.public void set(T value)
MetaDataEntry.value - The object to set.Copyright © 2010–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.