@ParametersAreNonnullByDefault public class

DefaultInstanceFeatureManager

extends Object
implements InitializingComponent InstanceFeatureManager Startable
java.lang.Object
   ↳ com.atlassian.jira.config.feature.DefaultInstanceFeatureManager

Summary

Public Constructors
DefaultInstanceFeatureManager(FeaturesLoader featuresLoader, EventPublisher eventPublisher)
Public Methods
void afterInstantiation()
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.
void start()
This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.InitializingComponent
From interface com.atlassian.jira.config.InstanceFeatureManager
From interface com.atlassian.jira.extension.Startable

Public Constructors

public DefaultInstanceFeatureManager (FeaturesLoader featuresLoader, EventPublisher eventPublisher)

Public Methods

public void afterInstantiation ()

Throws
Exception

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

public void start ()

This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Throws
Exception