public class BootstrapInstanceFeatureManager extends Object implements InstanceFeatureManager
Constructor and Description |
---|
BootstrapInstanceFeatureManager() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getEnabledFeatureKeys()
Returns a set containing the feature keys of all features that are currently enabled.
|
boolean |
isInstanceFeatureEnabled(String featureKey)
Checks whether feature
featureKey is enabled in the this JIRA instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOnDemand
public boolean isInstanceFeatureEnabled(@Nonnull String featureKey)
InstanceFeatureManager
featureKey
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.isInstanceFeatureEnabled
in interface InstanceFeatureManager
featureKey
- feature keytrue
, if feature identified by featureKey is enabled, false
otherwisepublic Set<String> getEnabledFeatureKeys()
InstanceFeatureManager
getEnabledFeatureKeys
in interface InstanceFeatureManager
Copyright © 2002-2021 Atlassian. All Rights Reserved.