public class PropertyPersistenceStrategySourceImpl extends java.lang.Object implements PropertyPersistenceStrategySource
tapestry.persist.PropertyPersistenceStrategySource service.
Allows access to other services, that implement the
PropertyPersistenceStrategy interface.| Constructor and Description |
|---|
PropertyPersistenceStrategySourceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
initializeService() |
void |
setContributions(java.util.List contributions) |
public PropertyPersistenceStrategySourceImpl()
public void initializeService()
public PropertyPersistenceStrategy getStrategy(java.lang.String name)
PropertyPersistenceStrategySourcegetStrategy in interface PropertyPersistenceStrategySourcename - the name of the strategy to retrieve.public java.util.Collection getAllStoredChanges(java.lang.String pageName)
PropertyPersistenceStrategySourcePropertyChange) collected by any persistence strategy for the
page. May return an empty list.getAllStoredChanges in interface PropertyPersistenceStrategySourcePropertyPersistenceStrategy.getStoredChanges(String)public void discardAllStoredChanged(java.lang.String pageName)
PropertyPersistenceStrategySourcediscardAllStoredChanged in interface PropertyPersistenceStrategySourcepublic void addParametersForPersistentProperties(ServiceEncoding encoding, boolean post)
PropertyPersistenceStrategySourceLinkFactory , the parameters may be
modified (added to) to store information related to persistent properties. This method is
forwarded to all PropertyPersistenceStrategys.addParametersForPersistentProperties in interface PropertyPersistenceStrategySourceencoding - 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 linkPropertyPersistenceStrategySourcepublic void setContributions(java.util.List contributions)