org.apache.tapestry.engine.state
Interface StateObjectManager

All Known Implementing Classes:
StateObjectManagerImpl

public interface StateObjectManager

Interface for an object that manages a single application state object. Represents the named intersection of a StateObjectPersistenceManagerfor storing the state object between request cycles, and a StateObjectFactoryto create the object in the first place.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 boolean exists()
          Returns true if the application state object exists (i.e., a value has been stored).
 java.lang.Object get()
          Gets or creates the application state object.
 void store(java.lang.Object stateObject)
          Stores (if necessary) the object back into persistent storage.
 

Method Detail

exists

public boolean exists()
Returns true if the application state object exists (i.e., a value has been stored).


get

public java.lang.Object get()
Gets or creates the application state object.


store

public void store(java.lang.Object stateObject)
Stores (if necessary) the object back into persistent storage. This is not application to all storage scopes.

Parameters:
stateObject - the application state object previously obtained from get().