| org.apache.tapestry.services.ApplicationStatePersistenceStrategy
All known Subclasses: org.apache.tapestry.internal.services.SessionApplicationStatePersistenceStrategy,
ApplicationStatePersistenceStrategy | public interface ApplicationStatePersistenceStrategy (Code) | | Used by
ApplicationStateManager to manage a specific kind of ASO persistence. The stategy
is responsible for managing ASO instances within its domain.
|
Method Summary | |
boolean | exists(Class<T> asoClass) Returns true if the ASO already exists, false if null. | T | get(Class<T> asoClass, ApplicationStateCreator<T> creator) Gets the ASO from the domain. | void | set(Class<T> asoClass, T aso) Stores a new ASO, possibly replacing the existing one. |
exists | boolean exists(Class<T> asoClass)(Code) | | Returns true if the ASO already exists, false if null.
|
get | T get(Class<T> asoClass, ApplicationStateCreator<T> creator)(Code) | | Gets the ASO from the domain. If the ASO does not already exist, it is created and stored,
then returned.
|
set | void set(Class<T> asoClass, T aso)(Code) | | Stores a new ASO, possibly replacing the existing one.
< Parameters: T - > Parameters: asoClass - Parameters: aso - instance to store, or null to delete existing |
|
|