org.jboss.resteasy.plugins.cache.server
Class ServerCacheFeature
java.lang.Object
org.jboss.resteasy.plugins.cache.server.ServerCacheFeature
- All Implemented Interfaces:
- Feature
public class ServerCacheFeature
- extends Object
- implements Feature
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected ServerCache cache
ServerCacheFeature
public ServerCacheFeature()
ServerCacheFeature
public ServerCacheFeature(ServerCache cache)
configure
public boolean configure(Configurable configurable)
- Description copied from interface:
Feature
- A call-back method called when the feature is to be enabled in a given
configurable scope.
The responsibility of the feature is to properly update the supplied configurable context
and return
true if the feature was successfully enabled or false otherwise.
Note that under some circumstances the feature may decide not to enable itself, which
is indicated by returning false. In such case the configurable context does
not internally register the feature in the collection of enabled features and the attempt to enable the feature is ignored.
- Specified by:
configure in interface Feature
- Parameters:
configurable - configurable context in which the feature should be enabled.
- Returns:
true if the feature was successfully enabled, false
otherwise.
getResteasyConfiguration
protected ResteasyConfiguration getResteasyConfiguration()
getConfigProperty
protected String getConfigProperty(String name)
getCache
protected ServerCache getCache(Configurable configurable)
getDefaultCache
protected ServerCache getDefaultCache()
getXmlCache
protected ServerCache getXmlCache(Configurable configurable)
Copyright © 2012. All Rights Reserved.