@Portable public class ExperimentalFeaturesRegistryImpl extends Object implements ExperimentalFeaturesRegistry
Constructor and Description |
---|
ExperimentalFeaturesRegistryImpl(List<ExperimentalFeatureImpl> features) |
Modifier and Type | Method and Description |
---|---|
Collection<ExperimentalFeature> |
getAllFeatures()
Returns all the
ExperimentalFeature present on the platform |
Optional<ExperimentalFeature> |
getFeature(String featureId)
Returns the
ExperimentalFeature identified by the given featureID |
boolean |
isFeatureEnabled(String featureId)
Determines if a given feature is enabled or not.
|
public ExperimentalFeaturesRegistryImpl(List<ExperimentalFeatureImpl> features)
public Optional<ExperimentalFeature> getFeature(String featureId)
ExperimentalFeaturesRegistry
ExperimentalFeature
identified by the given featureIDgetFeature
in interface ExperimentalFeaturesRegistry
featureId
- a String containing the identifier of an existing featureExperimentalFeature
instance identified by the featureId if is present on the platform,
null if it doesn't existpublic boolean isFeatureEnabled(String featureId)
ExperimentalFeaturesRegistry
isFeatureEnabled
in interface ExperimentalFeaturesRegistry
featureId
- a String containing the identifier of an existing featurepublic Collection<ExperimentalFeature> getAllFeatures()
ExperimentalFeaturesRegistry
ExperimentalFeature
present on the platformgetAllFeatures
in interface ExperimentalFeaturesRegistry
ExperimentalFeature
present on the platformCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.