Class ExperimentalFeaturesRegistryImpl
- java.lang.Object
-
- org.uberfire.experimental.service.registry.impl.ExperimentalFeaturesRegistryImpl
-
- All Implemented Interfaces:
ExperimentalFeaturesRegistry
@Portable public class ExperimentalFeaturesRegistryImpl extends Object implements ExperimentalFeaturesRegistry
-
-
Constructor Summary
Constructors Constructor Description ExperimentalFeaturesRegistryImpl(List<ExperimentalFeatureImpl> features)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ExperimentalFeature>getAllFeatures()Returns all theExperimentalFeaturepresent on the platformOptional<ExperimentalFeature>getFeature(String featureId)Returns theExperimentalFeatureidentified by the given featureIDbooleanisFeatureEnabled(String featureId)Determines if a given feature is enabled or not.
-
-
-
Constructor Detail
-
ExperimentalFeaturesRegistryImpl
public ExperimentalFeaturesRegistryImpl(List<ExperimentalFeatureImpl> features)
-
-
Method Detail
-
getFeature
public Optional<ExperimentalFeature> getFeature(String featureId)
Description copied from interface:ExperimentalFeaturesRegistryReturns theExperimentalFeatureidentified by the given featureID- Specified by:
getFeaturein interfaceExperimentalFeaturesRegistry- Parameters:
featureId- a String containing the identifier of an existing feature- Returns:
- the
ExperimentalFeatureinstance identified by the featureId if is present on the platform, null if it doesn't exist
-
isFeatureEnabled
public boolean isFeatureEnabled(String featureId)
Description copied from interface:ExperimentalFeaturesRegistryDetermines if a given feature is enabled or not.- Specified by:
isFeatureEnabledin interfaceExperimentalFeaturesRegistry- Parameters:
featureId- a String containing the identifier of an existing feature- Returns:
- true if the feature is enabled, false if it is disabled
-
getAllFeatures
public Collection<ExperimentalFeature> getAllFeatures()
Description copied from interface:ExperimentalFeaturesRegistryReturns all theExperimentalFeaturepresent on the platform- Specified by:
getAllFeaturesin interfaceExperimentalFeaturesRegistry- Returns:
- a List containing all
ExperimentalFeaturepresent on the platform
-
-