|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy
public class SessionApplicationStatePersistenceStrategy
Stores ASOs in the Session
, which will be created as necessary.
Constructor Summary | |
---|---|
SessionApplicationStatePersistenceStrategy(Request request)
|
Method Summary | ||
---|---|---|
protected
|
buildKey(Class<T> ssoClass)
|
|
|
exists(Class<T> ssoClass)
Returns true if the SSO already exists, false if null. |
|
|
get(Class<T> ssoClass,
ApplicationStateCreator<T> creator)
Gets the SSO from the domain. |
|
protected
|
getOrCreate(Class<T> ssoClass,
ApplicationStateCreator<T> creator)
|
|
protected Session |
getSession()
|
|
|
set(Class<T> ssoClass,
T sso)
Stores a new SSO, possibly replacing the existing one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionApplicationStatePersistenceStrategy(Request request)
Method Detail |
---|
protected Session getSession()
public <T> T get(Class<T> ssoClass, ApplicationStateCreator<T> creator)
ApplicationStatePersistenceStrategy
get
in interface ApplicationStatePersistenceStrategy
protected <T> Object getOrCreate(Class<T> ssoClass, ApplicationStateCreator<T> creator)
protected <T> String buildKey(Class<T> ssoClass)
public <T> void set(Class<T> ssoClass, T sso)
ApplicationStatePersistenceStrategy
set
in interface ApplicationStatePersistenceStrategy
sso
- instance to store, or null to delete existingpublic <T> boolean exists(Class<T> ssoClass)
ApplicationStatePersistenceStrategy
exists
in interface ApplicationStatePersistenceStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |