java.lang.Object | |
↳ | com.atlassian.jira.config.FeatureFlagDefinitions |
A FeatureFlagDefinitions is designed to be used in a static variable declaration while still capturing the flags defined via it.
Declare a static of this type and then declare specific FeatureFlag
definitions as static variables as well.
public class WellKnownFeatureFlags
{
static FeatureFlagDefinitions FLAGS = new FeatureFlagDefinitions();
public final static FeatureFlag TEST_FEATURE_ONE = FLAGS.featureFlag("test.feature.one").define();
public final static FeatureFlag TEST_FEATURE_TWO = FLAGS.featureFlag("test.feature.two").onByDefault().define();
}
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FeatureFlagDefinitions.Definition | A builder intermediate class that allows for static definition |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Begin a a new feature flag definition that can be stored in a static variable.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Begin a a new feature flag definition that can be stored in a static variable. It must follow the validation rules of this class
featureKey | the key of the feature |
---|