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).
 Object get()
          Gets or creates the application state object.
 void store(Object stateObject)
          Stores (if necessary) the object back into persistent storage.
 

Method Detail

exists

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


get

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


store

void store(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().


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.