public class

BootstrapInstanceFeatureManager

extends Object
implements InstanceFeatureManager
java.lang.Object
   ↳ com.atlassian.jira.config.feature.BootstrapInstanceFeatureManager

Class Overview

Simple instance feature manager used during bootstrap. Setup does not use features at all currently.

Summary

Public Constructors
BootstrapInstanceFeatureManager()
Public Methods
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.
boolean isOnDemand()
Checks if JIRA is running in OnDemand mode.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.config.InstanceFeatureManager

Public Constructors

public BootstrapInstanceFeatureManager ()

Public Methods

public Set<String> getEnabledFeatureKeys ()

Returns a set containing the feature keys of all features that are currently enabled.

Returns
  • a set containing the feature keys of all features that are currently enabled

public boolean isInstanceFeatureEnabled (String featureKey)

Checks whether feature 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.

Parameters
featureKey feature key
Returns
  • true, if feature identified by featureKey is enabled, false otherwise

public boolean isOnDemand ()

Checks if JIRA is running in OnDemand mode.

Returns
  • true if this is JIRA OnDemand; false otherwise