@Component(value="tapirFeatureCheckService") public class FeatureCheckService extends Object
FeatureCheckService is responsible for providing information about active/inactive features.| Constructor and Description |
|---|
FeatureCheckService() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_evaluate(ActivatedFeatureExpression activatedFeatureExpression)
Evaluates the given expression.
|
protected boolean |
_evaluate(AllOfFeatureExpression allOfFeatureExpression)
Evaluates the given expression.
|
protected boolean |
_evaluate(AnyOfFeatureExpression anyOfFeatureExpression)
Evaluates the given expression.
|
protected boolean |
_evaluate(NotFeatureExpression notFeatureExpression)
Evaluates the given expression.
|
boolean |
evaluate(FeatureExpression activatedFeatureExpression) |
boolean |
isActive(Class<? extends Feature> feature)
Returns true if the given
Feature is active. |
public boolean isActive(Class<? extends Feature> feature)
Feature is active.feature - The feature which should be checkedFeature is active, otherwise falseprotected boolean _evaluate(ActivatedFeatureExpression activatedFeatureExpression)
activatedFeatureExpression - The expression to evaluate.true.protected boolean _evaluate(NotFeatureExpression notFeatureExpression)
notFeatureExpression - The expression to evaluate.true.protected boolean _evaluate(AnyOfFeatureExpression anyOfFeatureExpression)
anyOfFeatureExpression - The expression to evaluate.true.protected boolean _evaluate(AllOfFeatureExpression allOfFeatureExpression)
allOfFeatureExpression - The expression to evaluate.true.public boolean evaluate(FeatureExpression activatedFeatureExpression)
Copyright © 2018–2021 b+m Informatik AG. All rights reserved.