Class BootstrapInstanceFeatureManager

java.lang.Object
com.atlassian.jira.config.feature.BootstrapInstanceFeatureManager
All Implemented Interfaces:
InstanceFeatureManager

public class BootstrapInstanceFeatureManager extends Object implements InstanceFeatureManager
Simple instance feature manager used during bootstrap. Setup does not use features at all currently.
Since:
v7.1
  • Constructor Details

    • BootstrapInstanceFeatureManager

      public BootstrapInstanceFeatureManager()
  • Method Details

    • isInstanceFeatureEnabled

      public boolean isInstanceFeatureEnabled(@Nonnull String featureKey)
      Description copied from interface: InstanceFeatureManager
      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.
      Specified by:
      isInstanceFeatureEnabled in interface InstanceFeatureManager
      Parameters:
      featureKey - feature key
      Returns:
      true, if feature identified by featureKey is enabled, false otherwise
    • getEnabledFeatureKeys

      public Set<String> getEnabledFeatureKeys()
      Description copied from interface: InstanceFeatureManager
      Returns a set containing the feature keys of all features that are currently enabled.
      Specified by:
      getEnabledFeatureKeys in interface InstanceFeatureManager
      Returns:
      a set containing the feature keys of all features that are currently enabled