public class FeatureFlagDefinitions extends Object
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();
}
Modifier and Type | Class and Description |
---|---|
class |
FeatureFlagDefinitions.Definition
A builder intermediate class that allows for static definition
|
Constructor and Description |
---|
FeatureFlagDefinitions() |
Modifier and Type | Method and Description |
---|---|
FeatureFlagDefinitions.Definition |
featureFlag(String featureKey)
Begin a a new feature flag definition that can be stored in a static variable.
|
Set<FeatureFlag> |
getFeatureFlags() |
public Set<FeatureFlag> getFeatureFlags()
public FeatureFlagDefinitions.Definition featureFlag(String featureKey)
featureKey
- the key of the featureCopyright © 2002-2022 Atlassian. All Rights Reserved.