org.apache.tapestry.record
Class AppClientPropertyPersistenceScope

java.lang.Object
  extended by org.apache.tapestry.record.AbstractPrefixedClientPropertyPersistenceScope
      extended by org.apache.tapestry.record.AppClientPropertyPersistenceScope
All Implemented Interfaces:
ClientPropertyPersistenceScope

public class AppClientPropertyPersistenceScope
extends AbstractPrefixedClientPropertyPersistenceScope

Defines the 'app' scope for persisting client properties. Persist the properties in all cases.

Since:
4.0
Author:
Mindbridge
See Also:
ClientPropertyPersistenceScope

Constructor Summary
AppClientPropertyPersistenceScope()
           
 
Method Summary
 boolean shouldEncodeState(ServiceEncoding encoding, java.lang.String pageName, PersistentPropertyData data)
          Always returns true.
 
Methods inherited from class org.apache.tapestry.record.AbstractPrefixedClientPropertyPersistenceScope
constructParameterName, extractPageName, isParameterForScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppClientPropertyPersistenceScope

public AppClientPropertyPersistenceScope()
Method Detail

shouldEncodeState

public boolean shouldEncodeState(ServiceEncoding encoding,
                                 java.lang.String pageName,
                                 PersistentPropertyData data)
Always returns true.

Parameters:
encoding - identifies the service, URL and base set of parameters
pageName - the page for which data is potentially to be encoded
Returns:
true if state should be encoded into the encoding, false otherwise