Interface ConditionMatcherFactory

All Known Implementing Classes:
ArgumentConditionMatcherFactory, AttachmentConditionMatcherFactory, UrlParamConditionMatcherFactory

@SPI public interface ConditionMatcherFactory
Factory of ConditionMatcher instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    createMatcher(String key, org.apache.dubbo.rpc.model.ModuleModel model)
    Create a matcher instance for the key.
    boolean
    Check if the key is of the form of the current matcher type which this factory instance represents..
  • Method Details

    • shouldMatch

      boolean shouldMatch(String key)
      Check if the key is of the form of the current matcher type which this factory instance represents..
      Parameters:
      key - the key of a particular form
      Returns:
      true if matches, otherwise false
    • createMatcher

      ConditionMatcher createMatcher(String key, org.apache.dubbo.rpc.model.ModuleModel model)
      Create a matcher instance for the key.
      Parameters:
      key - the key value conforms to a specific matcher specification
      model - module model
      Returns:
      the specific matcher instance