|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.fruitioninc.jwc.AbstractModel | +--com.fruitioninc.jwc.AbstractThreadLocalModel
Abstract base class for models that store their state in thread local storage.
Field Summary | |
static int |
SCOPE_REQUEST
State that persists for the life of the request. |
static int |
SCOPE_SESSION
State that persists for the life of the session. |
Constructor Summary | |
AbstractThreadLocalModel(Component component)
Creates a model that stores its state in request scope. |
|
AbstractThreadLocalModel(Component component,
int scope)
Creates a model that stores its state in thread local storage. |
Method Summary | |
protected java.lang.Object |
getProperty(java.lang.String name)
Returns the value of a property. |
protected void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the value of a property. |
Methods inherited from class com.fruitioninc.jwc.AbstractModel |
_getStatefull, _setStatefull |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SCOPE_REQUEST
public static final int SCOPE_SESSION
Constructor Detail |
public AbstractThreadLocalModel(Component component)
public AbstractThreadLocalModel(Component component, int scope)
scope
- scope of the state; either SCOPE_REQUEST or SCOPE_SESSIONMethod Detail |
protected java.lang.Object getProperty(java.lang.String name)
protected void setProperty(java.lang.String name, java.lang.Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |