org.apache.tapestry.engine.state
Interface ApplicationStateManager

All Known Implementing Classes:
ApplicationStateManagerImpl

public interface ApplicationStateManager

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 boolean exists(String objectName)
          Checks to see if the named object exists.
 void flush()
          Asks each StateObjectManager to store each object obtained.
 Object get(String objectName)
          Gets the named application state object, creating it if necessary.
 void store(String objectName, Object stateObject)
          Stores a new state object, replacing the old one.
 

Method Detail

exists

boolean exists(String objectName)
Checks to see if the named object exists.

Parameters:
objectName - the name of the application state object
Returns:
True if the object with the specified name exists, false otherwise.
Throws:
org.apache.hivemind.ApplicationRuntimeException - If no such object is declared

get

Object get(String objectName)
Gets the named application state object, creating it if necessary.

Parameters:
objectName - the name of the application state object
Returns:
the object
Throws:
org.apache.hivemind.ApplicationRuntimeException - if no such object is declared

store

void store(String objectName,
           Object stateObject)
Stores a new state object, replacing the old one. The new object may be null.

Parameters:
objectName - the name of the object to store
stateObject - the new object, possibly null
Throws:
org.apache.hivemind.ApplicationRuntimeException - if no such object is declared

flush

void flush()
Asks each StateObjectManager to store each object obtained.



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