Class BootstrapInstanceFeatureManager
java.lang.Object
com.atlassian.jira.config.feature.BootstrapInstanceFeatureManager
- All Implemented Interfaces:
InstanceFeatureManager
Simple instance feature manager used during bootstrap. Setup does not use features at all currently.
- Since:
- v7.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a set containing the feature keys of all features that are currently enabled.booleanisInstanceFeatureEnabled(String featureKey) Checks whether featurefeatureKeyis enabled in the this JIRA instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.config.InstanceFeatureManager
isOnDemand
-
Constructor Details
-
BootstrapInstanceFeatureManager
public BootstrapInstanceFeatureManager()
-
-
Method Details
-
isInstanceFeatureEnabled
Description copied from interface:InstanceFeatureManagerChecks whether featurefeatureKeyis enabled in the this JIRA instance. It only checks global instance features that are not tenant specific (features defined in system properties, property files, installed plugins etc.) This method can be called without request context safely (i.e. during plugin initialisation). If the featureKey relates to a feature flag that is defined, then it will also take the default values into consideration.- Specified by:
isInstanceFeatureEnabledin interfaceInstanceFeatureManager- Parameters:
featureKey- feature key- Returns:
true, if feature identified by featureKey is enabled,falseotherwise
-
getEnabledFeatureKeys
Description copied from interface:InstanceFeatureManagerReturns a set containing the feature keys of all features that are currently enabled.- Specified by:
getEnabledFeatureKeysin interfaceInstanceFeatureManager- Returns:
- a set containing the feature keys of all features that are currently enabled
-