| Modifier and Type | Class and Description |
|---|---|
static interface |
ConfiguredFeature.Config |
| Constructor and Description |
|---|
ConfiguredFeature() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
The description of the feature.
|
String |
getName()
The name of the feature.
|
boolean |
isEnabled(ExecutionContext context)
Checks whether the feature is enabled for the given execution context.
|
public boolean isEnabled(ExecutionContext context)
Feature
Multiple calls to this method may but are not required to return the same
value. For example the return value may depend on the time of day, some
random number or some information provided by the given
ExecutionContext.
This method is called by the Feature manager and is not intended
to be called by application code directly.
isEnabled in interface Featurecontext - The ExecutionContext providing a context to
evaluate whether the feature is enabled or not.
Implementations must not hold on to this context instance or
the values provided for longer than executing this method.true if this Feature is enabled in the given
ExecutionContext.public String getDescription()
FeaturegetDescription in interface Featurenull or an empty string.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.