public class FeatureFlagRegistry extends Object
Constructor and Description |
---|
FeatureFlagRegistry(org.glassfish.hk2.api.IterableProvider<FeatureFlag> featureFlags)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(FeatureFlag featureFlag)
Register the feature flag.
|
void |
addAll(Collection<FeatureFlag> featureFlags)
Register all of the feature flags.
|
FeatureFlag |
forName(String name)
Get a registered FeatureFlag by name.
|
Collection<FeatureFlag> |
getValues() |
@Inject public FeatureFlagRegistry(org.glassfish.hk2.api.IterableProvider<FeatureFlag> featureFlags)
featureFlags
- Feature flags to register initially.public FeatureFlag forName(String name) throws BadApiRequestException
name
- Name of the FeatureFlag to getBadApiRequestException
- if no feature flag has been registered for that namepublic Collection<FeatureFlag> getValues()
public void add(FeatureFlag featureFlag)
featureFlag
- FeatureFlag to register.public void addAll(Collection<FeatureFlag> featureFlags)
featureFlags
- FeatureFlags to registerCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.