public class Features
extends java.lang.Object
Feature objects that together define the feature handling for a
particular service config element.| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
evaluate(java.util.Collection<java.lang.String> input,
int configVersion,
DiagCollector diags,
Location location)
Evaluates a collection of feature strings provided by the service owner, taking into account
the feature definitions and the current config version, and returns the canonicalized set of
enabled features.
|
public Features(Feature... features)
public java.util.Set<java.lang.String> evaluate(java.util.Collection<java.lang.String> input,
int configVersion,
DiagCollector diags,
Location location)
input - a collection of strings that are either feature names (indicating that the named
feature should be enabled), or a '~' followed by a feature name (indicating that the named
feature should be disabled).