@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)
ExperimentalFeaturesRegistryExperimentalFeature identified by the given featureIDgetFeature in interface ExperimentalFeaturesRegistryfeatureId - 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)
ExperimentalFeaturesRegistryisFeatureEnabled in interface ExperimentalFeaturesRegistryfeatureId - a String containing the identifier of an existing featurepublic Collection<ExperimentalFeature> getAllFeatures()
ExperimentalFeaturesRegistryExperimentalFeature present on the platformgetAllFeatures in interface ExperimentalFeaturesRegistryExperimentalFeature present on the platformCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.