Interface ContextualFeatureFilterAsync
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A Filter for Feature Management that is attached to Features. The filter needs to have @Component set to be found by
feature management. As a Contextual feature filter any context that is passed in to the feature request will be
passed along to the filter(s).
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionevaluateAsync(FeatureFilterEvaluationContext context, Object appContext) Evaluates if the filter is on or off.
-
Method Details
-
evaluateAsync
Evaluates if the filter is on or off. Returning true results in Feature evaluation ending and returning true. Returning false results in the next Feature evaluation to continue.- Parameters:
context- The context for whether or not the filter is passed.appContext- The internal app context- Returns:
- true if the feature is enabled, false otherwise.
-