org.apache.tapestry
Interface SessionStoreOptimized

All Known Implementing Classes:
BaseSessionStoreOptimized

public interface SessionStoreOptimized

Optional interface implemented by Application State Objects. This interface allows Tapestry to optimize the storage of the objects into the session, only storing the objects when they require storage due to a change in internal state.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 boolean isStoreToSessionNeeded()
          Queried by the StateObjectManager to see if the object actually needs to be stored.
 

Method Detail

isStoreToSessionNeeded

boolean isStoreToSessionNeeded()
Queried by the StateObjectManager to see if the object actually needs to be stored. Objects that implement this interface should store an internal flag. The flag should be set when any change to the object's internal state occurs. The flag should be cleared when the object is stored into the session (typically, by implementing HttpSessionBindingListener.

Returns:
true if the object needs to be stored back into the session, false if the internal state of the object is unchanged


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