public class FeatureFlag extends Object implements Feature
Feature because it can have a default value. Additionally,
feature flags can be declared via xml and shared across add-ons.| Modifier and Type | Field and Description |
|---|---|
static String |
POSTFIX_DISABLED |
static String |
POSTFIX_ENABLED |
| Modifier and Type | Method and Description |
|---|---|
FeatureFlag |
defaultedTo(boolean defaultValue)
Creates a new FeatureFlag that is defaulted to the specified value
|
String |
disabledFeatureKey() |
String |
enabledFeatureKey() |
boolean |
equals(Object o) |
static FeatureFlag |
featureFlag(String featureKey)
Creates a new FeatureFlag with the specified key and off by default
|
String |
featureKey()
The feature key that can be used to enable, disable or query the status of a feature using the
FeatureManager. |
int |
hashCode() |
boolean |
isOnByDefault() |
FeatureFlag |
offByDefault()
Creates a new FeatureFlag that is off by default
|
FeatureFlag |
onByDefault()
Creates a new FeatureFlag that is on by default
|
String |
toString() |
public static final String POSTFIX_ENABLED
public static final String POSTFIX_DISABLED
public String featureKey()
FeatureFeatureManager.featureKey in interface Featurepublic boolean isOnByDefault()
public String enabledFeatureKey()
POSTFIX_ENABLEDpublic String disabledFeatureKey()
POSTFIX_DISABLEDpublic static FeatureFlag featureFlag(String featureKey)
featureKey - the key in playpublic FeatureFlag onByDefault()
public FeatureFlag offByDefault()
public FeatureFlag defaultedTo(boolean defaultValue)
Copyright © 2002-2017 Atlassian. All Rights Reserved.