Class UrlParamConditionMatcherFactory

java.lang.Object
org.apache.dubbo.rpc.cluster.router.condition.matcher.param.UrlParamConditionMatcherFactory
All Implemented Interfaces:
ConditionMatcherFactory

@Activate(order=2147483647) public class UrlParamConditionMatcherFactory extends Object implements ConditionMatcherFactory
  • Constructor Details

    • UrlParamConditionMatcherFactory

      public UrlParamConditionMatcherFactory()
  • Method Details

    • shouldMatch

      public boolean shouldMatch(String key)
      Description copied from interface: ConditionMatcherFactory
      Check if the key is of the form of the current matcher type which this factory instance represents..
      Specified by:
      shouldMatch in interface ConditionMatcherFactory
      Parameters:
      key - the key of a particular form
      Returns:
      true if matches, otherwise false
    • createMatcher

      public ConditionMatcher createMatcher(String key, org.apache.dubbo.rpc.model.ModuleModel model)
      Description copied from interface: ConditionMatcherFactory
      Create a matcher instance for the key.
      Specified by:
      createMatcher in interface ConditionMatcherFactory
      Parameters:
      key - the key value conforms to a specific matcher specification
      model - module model
      Returns:
      the specific matcher instance