org.apache.tapestry.record
Class PropertyPersistenceStrategySourceImpl

java.lang.Object
  extended byorg.apache.tapestry.record.PropertyPersistenceStrategySourceImpl
All Implemented Interfaces:
PropertyPersistenceStrategySource

public class PropertyPersistenceStrategySourceImpl
extends java.lang.Object
implements PropertyPersistenceStrategySource

Implementation of the tapestry.persist.PropertyPersistenceStrategySource service. Allows access to other services, that implement the PropertyPersistenceStrategy interface.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
PropertyPersistenceStrategySourceImpl()
           
 
Method Summary
 void addParametersForPersistentProperties(ServiceEncoding encoding, IRequestCycle cycle)
          Invoked by a LinkFactory , the parameters may be modified (added to) to store information related to persistent properties.
 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 (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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyPersistenceStrategySourceImpl

public PropertyPersistenceStrategySourceImpl()
Method Detail

initializeService

public void initializeService()

getStrategy

public PropertyPersistenceStrategy getStrategy(java.lang.String name)
Description copied from interface: PropertyPersistenceStrategySource
Returns the name strategy.

Specified by:
getStrategy in interface PropertyPersistenceStrategySource
Parameters:
name - the name of the strategy to retrieve.

getAllStoredChanges

public java.util.Collection getAllStoredChanges(java.lang.String pageName,
                                                IRequestCycle cycle)
Description copied from interface: PropertyPersistenceStrategySource
Returns all changes (PropertyChange) collected by any persistence strategy for the page. May return an empty list.

Specified by:
getAllStoredChanges in interface PropertyPersistenceStrategySource
See Also:
PropertyPersistenceStrategy.getStoredChanges(String, IRequestCycle)

discardAllStoredChanged

public void discardAllStoredChanged(java.lang.String pageName,
                                    IRequestCycle cycle)
Description copied from interface: PropertyPersistenceStrategySource
Discards any stored property changes for the named page.

Specified by:
discardAllStoredChanged in interface PropertyPersistenceStrategySource

addParametersForPersistentProperties

public void addParametersForPersistentProperties(ServiceEncoding encoding,
                                                 IRequestCycle cycle)
Description copied from interface: PropertyPersistenceStrategySource
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.

Specified by:
addParametersForPersistentProperties in interface PropertyPersistenceStrategySource
Parameters:
encoding - Service encoding, which indentifies the URL and the query parameters from which the ILink will be created.
cycle - The current request cycle.
See Also:
PropertyPersistenceStrategySource

setContributions

public void setContributions(java.util.List contributions)