Class BuildNumberFeatureFlagActivator
java.lang.Object
com.atlassian.jira.config.feature.BuildNumberFeatureFlagActivator
- All Implemented Interfaces:
FeatureFlagActivator
Feature flag activator based on build number
- Since:
- v7.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.common.collect.ImmutableMap<FeatureFlag,
Integer> Map of feature flags with corresponding build number starting from which given flag should be activated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a set of feature flags that should be considered as activated (ie.
-
Field Details
-
BUILD_NUMBER_ACTIVATED_FEATURE_FLAGS
public static final com.google.common.collect.ImmutableMap<FeatureFlag,Integer> BUILD_NUMBER_ACTIVATED_FEATURE_FLAGSMap of feature flags with corresponding build number starting from which given flag should be activated. Add proper contract using unit tests to BuildNumberFeatureFlagActivatorTest
-
-
Constructor Details
-
BuildNumberFeatureFlagActivator
-
-
Method Details
-
getActivatedFlags
Description copied from interface:FeatureFlagActivator
Return a set of feature flags that should be considered as activated (ie. enabled).NB: The
FeatureFlag
returned from this method must return false fromFeatureFlag.isOnByDefault()
and therefore be off by default, to be considered valid.- Specified by:
getActivatedFlags
in interfaceFeatureFlagActivator
-