Class AlwaysOnFilter
java.lang.Object
com.azure.spring.cloud.feature.management.filters.AlwaysOnFilter
- All Implemented Interfaces:
FeatureFilter
A filter that always returns true
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(FeatureFilterEvaluationContext context) Evaluates if the filter is on or off.
-
Constructor Details
-
AlwaysOnFilter
public AlwaysOnFilter()Creates an instance ofAlwaysOnFilter
-
-
Method Details
-
evaluate
Description copied from interface:FeatureFilterEvaluates 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.- Specified by:
evaluatein interfaceFeatureFilter- Parameters:
context- The context for whether or not the filter is passed.- Returns:
- True if the feature is enabled, false otherwise.
-