@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, waitisOnDemandpublic DefaultInstanceFeatureManager(FeaturesLoader featuresLoader, com.atlassian.event.api.EventPublisher eventPublisher)
public Set<String> getEnabledFeatureKeys()
InstanceFeatureManagergetEnabledFeatureKeys in interface InstanceFeatureManagerpublic boolean isInstanceFeatureEnabled(String featureKey)
InstanceFeatureManagerfeatureKey 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 InstanceFeatureManagerfeatureKey - feature keytrue, if feature identified by featureKey is enabled, false otherwisepublic void afterInstantiation()
throws Exception
afterInstantiation in interface InitializingComponentExceptionCopyright © 2002-2024 Atlassian. All Rights Reserved.