java.lang.Object
com.azure.spring.cloud.feature.manager.feature.filters.AlwaysOnFilter
All Implemented Interfaces:
FeatureFilter

public class AlwaysOnFilter extends Object implements FeatureFilter
A filter that always returns true
  • Constructor Details

    • AlwaysOnFilter

      public AlwaysOnFilter()
  • Method Details

    • evaluate

      public boolean evaluate(FeatureFilterEvaluationContext context)
      Description copied from interface: FeatureFilter
      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.
      Specified by:
      evaluate in interface FeatureFilter
      Parameters:
      context - The context for whether or not the filter is passed.
      Returns:
      True if the feature is enabled, false otherwise.