|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ApplicationStateManagerImpl
public class ApplicationStateManagerImpl
Constructor Summary | |
---|---|
ApplicationStateManagerImpl(Map<Class,ApplicationStateContribution> configuration,
ApplicationStatePersistenceStrategySource source,
ObjectLocator locator)
|
Method Summary | ||
---|---|---|
|
exists(Class<T> ssoClass)
Returns true if the SSO already exists, false if it has not yet been created. |
|
|
get(Class<T> ssoClass)
For a given class, find the SSO for the class, creating it if necessary. |
|
|
getIfExists(Class<T> ssoClass)
For a given class, find the SSO for the class. |
|
|
set(Class<T> ssoClass,
T sso)
Stores a new SSO, replacing the existing SSO (if any). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationStateManagerImpl(Map<Class,ApplicationStateContribution> configuration, ApplicationStatePersistenceStrategySource source, ObjectLocator locator)
Method Detail |
---|
public <T> T get(Class<T> ssoClass)
ApplicationStateManager
ObjectLocator.autobuild(Class)
.
This
allows an SSO to keep references to Tapestry IoC services or other objects that can be injected.
get
in interface ApplicationStateManager
ssoClass
- identifies the SSO to access or create
public <T> T getIfExists(Class<T> ssoClass)
ApplicationStateManager
getIfExists
in interface ApplicationStateManager
ssoClass
- identifies the SSO to access or create
public <T> void set(Class<T> ssoClass, T sso)
ApplicationStateManager
set
in interface ApplicationStateManager
ssoClass
- the type of SSOsso
- the SSO instancepublic <T> boolean exists(Class<T> ssoClass)
ApplicationStateManager
exists
in interface ApplicationStateManager
ssoClass
- used to select the SSO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |