org.apache.tapestry.engine.state
Class StateObjectManagerImpl
java.lang.Object
org.apache.tapestry.engine.state.StateObjectManagerImpl
- All Implemented Interfaces:
- StateObjectManager
public class StateObjectManagerImpl
- extends Object
- implements StateObjectManager
- 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateObjectManagerImpl
public StateObjectManagerImpl(String name,
StateObjectFactory factory,
StateObjectPersistenceManager persistenceManager)
exists
public boolean exists()
- Description copied from interface:
StateObjectManager
- Returns true if the application state object exists (i.e., a value has
been stored).
- Specified by:
exists
in interface StateObjectManager
get
public Object get()
- Description copied from interface:
StateObjectManager
- Gets or creates the application state object.
- Specified by:
get
in interface StateObjectManager
store
public void store(Object stateObject)
- Description copied from interface:
StateObjectManager
- Stores (if necessary) the object back into persistent storage. This is
not application to all storage scopes.
- Specified by:
store
in interface StateObjectManager
- Parameters:
stateObject
- the application state object previously obtained from
StateObjectManager.get()
.
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.