public class BrowserCacheFeature extends Object implements Feature
Modifier and Type | Field and Description |
---|---|
protected BrowserCache |
cache |
Constructor and Description |
---|
BrowserCacheFeature() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(FeatureContext configuration)
A call-back method called when the feature is to be enabled in a given
runtime configuration scope.
|
BrowserCache |
getCache() |
void |
setCache(BrowserCache cache) |
protected BrowserCache cache
public BrowserCache getCache()
public void setCache(BrowserCache cache)
public boolean configure(FeatureContext configuration)
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
.
Copyright © 2021 JBoss by Red Hat. All rights reserved.