| org.apache.tapestry.services.ApplicationStateManager
All known Subclasses: org.apache.tapestry.internal.services.ApplicationStateManagerImpl,
ApplicationStateManager | public interface ApplicationStateManager (Code) | | Responsible for managing application state objects, objects which persist between
requests, but are not tied to any individual page or component. ASOs are also created on demand.
ASOs are typically stored in the session, so that they are specific to a particular client.
|
Method Summary | |
boolean | exists(Class<T> asoClass) Returns true if the ASO already exists, false if it has not yet been created. | T | get(Class<T> asoClass) For a given class, find the ASO for the class, creating it if necessary. | void | set(Class<T> asoClass, T aso) Stores a new ASO, replacing the existing ASO (if any). |
exists | boolean exists(Class<T> asoClass)(Code) | | Returns true if the ASO already exists, false if it has not yet been created.
Parameters: asoClass - used to select the ASO true if ASO exists, false if null |
get | T get(Class<T> asoClass)(Code) | | For a given class, find the ASO for the class, creating it if necessary. The manager has a
configuration that determines how an instance is stored and created as needed. A requested
ASO not in the configuration is assumed to be created via a no-args constructor, and stored
in the session.
< Parameters: T - > Parameters: asoClass - identifies the ASO to access or create the ASO instance |
set | void set(Class<T> asoClass, T aso)(Code) | | Stores a new ASO, replacing the existing ASO (if any). Storing the value null will delete the
ASO so that it may be re-created later.
< Parameters: T - > Parameters: asoClass - the type of ASO Parameters: aso - the ASO instance |
|
|