Class FeatureCheckService


  • @Component("tapirFeatureCheckService")
    public class FeatureCheckService
    extends java.lang.Object
    The FeatureCheckService is responsible for providing information about active/inactive features.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Constructor Detail

      • FeatureCheckService

        public FeatureCheckService()
    • Method Detail

      • isActive

        public boolean isActive​(java.lang.Class<? extends Feature> feature)
        Returns true if the given Feature is active.
        Parameters:
        feature - The feature which should be checked
        Returns:
        true if the given Feature is active, otherwise false
        Since:
        2.0.0
      • _evaluate

        protected boolean _evaluate​(ActivatedFeatureExpression activatedFeatureExpression)
        Evaluates the given expression.
        Parameters:
        activatedFeatureExpression - The expression to evaluate.
        Returns:
        true if and only if the expression evaluates to true.
        Since:
        3.3.0
      • _evaluate

        protected boolean _evaluate​(NotFeatureExpression notFeatureExpression)
        Evaluates the given expression.
        Parameters:
        notFeatureExpression - The expression to evaluate.
        Returns:
        true if and only if the expression evaluates to true.
        Since:
        3.3.0
      • _evaluate

        protected boolean _evaluate​(AnyOfFeatureExpression anyOfFeatureExpression)
        Evaluates the given expression.
        Parameters:
        anyOfFeatureExpression - The expression to evaluate.
        Returns:
        true if and only if the expression evaluates to true.
        Since:
        3.3.0
      • _evaluate

        protected boolean _evaluate​(AllOfFeatureExpression allOfFeatureExpression)
        Evaluates the given expression.
        Parameters:
        allOfFeatureExpression - The expression to evaluate.
        Returns:
        true if and only if the expression evaluates to true.
        Since:
        3.3.0
      • evaluate

        public boolean evaluate​(FeatureExpression activatedFeatureExpression)