Interface FeatureFilter
-
- All Known Implementing Classes:
AlwaysOnFilter,PercentageFilter,TargetingFilter,TimeWindowFilter
public interface FeatureFilterA Filter for Feature Management that is attached to Features. The filter needs to have @Component set to be found by feature management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanevaluate(FeatureFilterEvaluationContext context)Evaluates if the filter is on or off.
-
-
-
Method Detail
-
evaluate
boolean evaluate(FeatureFilterEvaluationContext context)
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.- Returns:
- True if the feature is enabled, false otherwise.
-
-