org.apache.tapestry.record
Interface PropertyPersistenceStrategySource

All Known Implementing Classes:
PropertyPersistenceStrategySourceImpl

public interface PropertyPersistenceStrategySource

A source for PropertyPersistenceStrategys.

Since:
3.1
Author:
Howard M. Lewis Ship

Method Summary
 void discardAllStoredChanged(java.lang.String pageName, IRequestCycle cycle)
          Discards any stored property changes for the named page.
 java.util.Collection getAllStoredChanges(java.lang.String pageName, IRequestCycle cycle)
          Returns all changes (IPageChange) collected by any persistence strategy for the page.
 PropertyPersistenceStrategy getStrategy(java.lang.String name)
          Returns the name strategy.
 

Method Detail

getStrategy

public PropertyPersistenceStrategy getStrategy(java.lang.String name)
Returns the name strategy.

Parameters:
name - the name of the strategy to retrieve.
Throws:
org.apache.hivemind.ApplicationRuntimeException - if no such strategy exists.

getAllStoredChanges

public java.util.Collection getAllStoredChanges(java.lang.String pageName,
                                                IRequestCycle cycle)
Returns all changes (IPageChange) collected by any persistence strategy for the page. May return an empty list.

See Also:
PropertyPersistenceStrategy.getStoredChanges(String, IRequestCycle)

discardAllStoredChanged

public void discardAllStoredChanged(java.lang.String pageName,
                                    IRequestCycle cycle)
Discards any stored property changes for the named page.