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)
PropertyPersistenceStrategySource
getStrategy
in interface PropertyPersistenceStrategySource
name
- the name of the strategy to retrieve.public java.util.Collection getAllStoredChanges(java.lang.String pageName)
PropertyPersistenceStrategySource
PropertyChange
) collected by any persistence strategy for the
page. May return an empty list.getAllStoredChanges
in interface PropertyPersistenceStrategySource
PropertyPersistenceStrategy.getStoredChanges(String)
public void discardAllStoredChanged(java.lang.String pageName)
PropertyPersistenceStrategySource
discardAllStoredChanged
in interface PropertyPersistenceStrategySource
public void addParametersForPersistentProperties(ServiceEncoding encoding, boolean post)
PropertyPersistenceStrategySource
LinkFactory
, the parameters may be
modified (added to) to store information related to persistent properties. This method is
forwarded to all PropertyPersistenceStrategy
s.addParametersForPersistentProperties
in interface PropertyPersistenceStrategySource
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 linkPropertyPersistenceStrategySource
public void setContributions(java.util.List contributions)