Package org.apache.tapestry5.services
Interface ApplicationStatePersistenceStrategySource
- All Known Implementing Classes:
ApplicationStatePersistenceStrategySourceImpl
@UsesMappedConfiguration(ApplicationStatePersistenceStrategy.class)
public interface ApplicationStatePersistenceStrategySource
Used to provide access to
ApplicationStatePersistenceStrategySource
instances
via a logical name for the strategy, such as "session".
NOTE: The term "Application" here is a hold-over from Tapestry 5.0, which used the @ApplicationState (deprecated and deleted) annotation, and called them "ASOs" (Application State Objects). This service would be better named "SessionStatePersistenceStrategySource" (but renaming it would cause backwards compatibility issues).
-
Method Summary
Modifier and TypeMethodDescriptionReturns the named strategy.
-
Method Details
-
get
Returns the named strategy.- Parameters:
name
- of strategy to access- Returns:
- the strategy
- Throws:
RuntimeException
- if the name does not match a configured strategy
-