public class ApplicationStateManagerImpl extends java.lang.Object implements ApplicationStateManager
| Constructor and Description |
|---|
ApplicationStateManagerImpl(java.util.Map<java.lang.Class,ApplicationStateContribution> configuration,
ApplicationStatePersistenceStrategySource source,
ObjectLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
exists(java.lang.Class<T> ssoClass)
Returns true if the SSO already exists, false if it has not yet been created.
|
<T> T |
get(java.lang.Class<T> ssoClass)
For a given class, find the SSO for the class, creating it if necessary.
|
<T> T |
getIfExists(java.lang.Class<T> ssoClass)
For a given class, find the SSO for the class.
|
<T> void |
set(java.lang.Class<T> ssoClass,
T sso)
Stores a new SSO, replacing the existing SSO (if any).
|
public ApplicationStateManagerImpl(java.util.Map<java.lang.Class,ApplicationStateContribution> configuration, ApplicationStatePersistenceStrategySource source, ObjectLocator locator)
public <T> T get(java.lang.Class<T> ssoClass)
ApplicationStateManagerObjectLocator.autobuild(Class).
This
allows an SSO to keep references to Tapestry IoC services or other objects that can be injected.get in interface ApplicationStateManagerssoClass - identifies the SSO to access or createpublic <T> T getIfExists(java.lang.Class<T> ssoClass)
ApplicationStateManagergetIfExists in interface ApplicationStateManagerssoClass - identifies the SSO to access or createpublic <T> void set(java.lang.Class<T> ssoClass, T sso)
ApplicationStateManagerset in interface ApplicationStateManagerssoClass - the type of SSOsso - the SSO instancepublic <T> boolean exists(java.lang.Class<T> ssoClass)
ApplicationStateManagerexists in interface ApplicationStateManagerssoClass - used to select the SSO${project.version} - Copyright © 2003-2015 The Apache Software Foundation.