public class ServerCacheFeature extends Object implements Feature
Modifier and Type | Field and Description |
---|---|
protected ServerCache |
cache |
Constructor and Description |
---|
ServerCacheFeature() |
ServerCacheFeature(ServerCache cache) |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(FeatureContext configurable)
A call-back method called when the feature is to be enabled in a given
runtime configuration scope.
|
protected ServerCache |
getCache(Configurable configurable) |
protected String |
getConfigProperty(String name) |
protected ServerCache |
getDefaultCache() |
protected ResteasyConfiguration |
getResteasyConfiguration() |
protected ServerCache |
getXmlCache(Configurable configurable) |
protected ServerCache cache
public ServerCacheFeature()
public ServerCacheFeature(ServerCache cache)
public boolean configure(FeatureContext configurable)
Feature
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 configuration context does
not add the feature to the collection of enabled features and a subsequent call to
Configuration.isEnabled(Feature)
or Configuration.isEnabled(Class)
method
would return false
.
protected ResteasyConfiguration getResteasyConfiguration()
protected ServerCache getCache(Configurable configurable)
protected ServerCache getDefaultCache()
protected ServerCache getXmlCache(Configurable configurable)
Copyright © 2014. All Rights Reserved.