public class SessionApplicationStatePersistenceStrategy extends Object implements ApplicationStatePersistenceStrategy
Session
, which will be created as necessary.Constructor and Description |
---|
SessionApplicationStatePersistenceStrategy(Request request) |
Modifier and Type | Method and Description |
---|---|
protected <T> String |
buildKey(Class<T> ssoClass) |
<T> boolean |
exists(Class<T> ssoClass)
Returns true if the SSO already exists, false if null.
|
<T> T |
get(Class<T> ssoClass,
ApplicationStateCreator<T> creator)
Gets the SSO from the domain.
|
protected <T> Object |
getOrCreate(Class<T> ssoClass,
ApplicationStateCreator<T> creator) |
protected Session |
getSession() |
<T> void |
set(Class<T> ssoClass,
T sso)
Stores a new SSO, possibly replacing the existing one.
|
public SessionApplicationStatePersistenceStrategy(Request request)
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)
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
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.