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.boolean
isInstanceFeatureEnabled
(String featureKey) Checks whether featurefeatureKey
is enabled in the this JIRA instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.config.InstanceFeatureManager
isOnDemand
-
Constructor Details
-
BootstrapInstanceFeatureManager
public BootstrapInstanceFeatureManager()
-
-
Method Details
-
isInstanceFeatureEnabled
Description copied from interface:InstanceFeatureManager
Checks whether featurefeatureKey
is 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:
isInstanceFeatureEnabled
in interfaceInstanceFeatureManager
- Parameters:
featureKey
- feature key- Returns:
true
, if feature identified by featureKey is enabled,false
otherwise
-
getEnabledFeatureKeys
Description copied from interface:InstanceFeatureManager
Returns a set containing the feature keys of all features that are currently enabled.- Specified by:
getEnabledFeatureKeys
in interfaceInstanceFeatureManager
- Returns:
- a set containing the feature keys of all features that are currently enabled
-