@ParametersAreNonnullByDefault public class DefaultInstanceFeatureManager extends Object implements InstanceFeatureManager, Startable, InitializingComponent
Constructor and Description |
---|
DefaultInstanceFeatureManager(FeaturesLoader featuresLoader,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
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. |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOnDemand
public DefaultInstanceFeatureManager(FeaturesLoader featuresLoader, com.atlassian.event.api.EventPublisher eventPublisher)
public Set<String> getEnabledFeatureKeys()
InstanceFeatureManager
getEnabledFeatureKeys
in interface InstanceFeatureManager
public boolean isInstanceFeatureEnabled(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 void afterInstantiation() throws Exception
afterInstantiation
in interface InitializingComponent
Exception
Copyright © 2002-2021 Atlassian. All Rights Reserved.