org.jboss.resteasy.plugins.cache.server
Class ServerCacheFeature

java.lang.Object
  extended by org.jboss.resteasy.plugins.cache.server.ServerCacheFeature
All Implemented Interfaces:
Feature

public class ServerCacheFeature
extends Object
implements Feature

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  ServerCache cache
           
 
Constructor Summary
ServerCacheFeature()
           
ServerCacheFeature(ServerCache cache)
           
 
Method Summary
 boolean configure(Configurable configurable)
          A call-back method called when the feature is to be enabled in a given configurable scope.
protected  ServerCache getCache(Configurable configurable)
           
protected  String getConfigProperty(String name)
           
protected  ServerCache getDefaultCache()
           
protected  ResteasyConfiguration getResteasyConfiguration()
           
protected  ServerCache getXmlCache(Configurable configurable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected ServerCache cache
Constructor Detail

ServerCacheFeature

public ServerCacheFeature()

ServerCacheFeature

public ServerCacheFeature(ServerCache cache)
Method Detail

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.