public class PropertyBasedFeatureEnabledChecker extends Object implements FeatureEnabledChecker
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyBasedFeatureEnabledChecker(String propertyName,
boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAccessible()
Returns whether the feature is accessible under current licensing terms.
|
boolean |
isEnabled()
Returns true if the feature is enabled and accessible under current licensing terms or false otherwise
|
void |
throwIfFeatureDisabledOrInaccessible()
Throws
FeatureInaccessibleException if the feature is not accessible. |
protected PropertyBasedFeatureEnabledChecker(String propertyName, boolean enabled)
propertyName - name of the system property enabling/disabling the feature, only for logging purposesenabled - whether the feature is enabledpublic boolean isEnabled()
FeatureFlagisEnabled in interface FeatureFlagpublic boolean isAccessible()
FeatureEnabledCheckerisAccessible in interface FeatureEnabledCheckerpublic void throwIfFeatureDisabledOrInaccessible()
FeatureEnabledCheckerFeatureInaccessibleException if the feature is not accessible.
Throws FeatureDisabledException if the feature is disabled.throwIfFeatureDisabledOrInaccessible in interface FeatureEnabledCheckerCopyright © 2024 Atlassian. All rights reserved.