org.apache.tapestry.record
Class PropertyPersistenceStrategySourceImpl

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

public class PropertyPersistenceStrategySourceImpl
extends 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, boolean post)
          Invoked by a LinkFactory , the parameters may be modified (added to) to store information related to persistent properties.
 void discardAllStoredChanged(String pageName)
          Discards any stored property changes for the named page.
 Collection getAllStoredChanges(String pageName)
          Returns all changes (PropertyChange) collected by any persistence strategy for the page.
 PropertyPersistenceStrategy getStrategy(String name)
          Returns the name strategy.
 void initializeService()
           
 void setContributions(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(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 Collection getAllStoredChanges(String pageName)
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)

discardAllStoredChanged

public void discardAllStoredChanged(String pageName)
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,
                                                 boolean post)
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.
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

setContributions

public void setContributions(List contributions)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.