Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.services
Interface ApplicationStatePersistenceStrategy

All Known Implementing Classes:
  EntityApplicationStatePersistenceStrategy, EntityApplicationStatePersistenceStrategy, SessionApplicationStatePersistenceStrategy

    public interface ApplicationStatePersistenceStrategy

Used by `ApplicationStateManager` to manage a specific kind of Session State Object (SSO) persistence. The stategy is responsible for managing SSO instances within its domain.

See Also:
  `ApplicationStatePersistenceStrategySource`

Method Summary
`
`<T> boolean`
` | `exists(java.lang.Class<T> ssoClass)` Returns true if the SSO already exists, false if null.
`
`<T> T`
` | `get(java.lang.Class<T> ssoClass, ApplicationStateCreator<T> creator)` Gets the SSO from the domain.
`
`<T> void`
` | `set(java.lang.Class<T> ssoClass, T sso)` Stores a new SSO, possibly replacing the existing one.

Method Detail

### get

    <T> T get(java.lang.Class<T> ssoClass,
              ApplicationStateCreator<T> creator)

  Gets the SSO from the domain. If the ASO does not already exist, it is created and stored, then returned.

### set

    <T> void set(java.lang.Class<T> ssoClass,
                 T sso)

  Stores a new SSO, possibly replacing the existing one.

  Type Parameters:
    `T` -
  Parameters:
    `ssoClass` -
    `sso` - instance to store, or null to delete existing

### exists

    <T> boolean exists(java.lang.Class<T> ssoClass)

  Returns true if the SSO already exists, false if null.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.