org.apache.tapestry.record
Interface PropertyPersistenceStrategySource

All Known Implementing Classes:
PropertyPersistenceStrategySourceImpl

public interface PropertyPersistenceStrategySource

A source for PropertyPersistenceStrategys.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 void addParametersForPersistentProperties(ServiceEncoding encoding, boolean post)
          Invoked by a LinkFactory , the parameters may be modified (added to) to store information related to persistent properties.
 void discardAllStoredChanged(java.lang.String pageName)
          Discards any stored property changes for the named page.
 java.util.Collection getAllStoredChanges(java.lang.String pageName)
          Returns all changes (PropertyChange) collected by any persistence strategy for the page.
 PropertyPersistenceStrategy getStrategy(java.lang.String name)
          Returns the name strategy.
 

Method Detail

getStrategy

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

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

See Also:
PropertyPersistenceStrategy.getStoredChanges(String)

discardAllStoredChanged

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


addParametersForPersistentProperties

void addParametersForPersistentProperties(ServiceEncoding encoding,
                                          boolean post)
Invoked by a LinkFactory , the parameters may be modified (added to) to store information related to persistent properties. This method is forwarded to all PropertyPersistenceStrategys.

Parameters:
encoding - Service encoding, which indentifies the URL and the query parameters from which the ILink will be created.
post - if true, then the link will be used for a post (not a get, i.e., for a HTML form); this may affect what information is encoded into the link
See Also:
PropertyPersistenceStrategySource