Interface ConditionMatcherFactory
- All Known Implementing Classes:
ArgumentConditionMatcherFactory,AttachmentConditionMatcherFactory,UrlParamConditionMatcherFactory
@SPI
public interface ConditionMatcherFactory
Factory of ConditionMatcher instances.
-
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher(String key, org.apache.dubbo.rpc.model.ModuleModel model) Create a matcher instance for the key.booleanshouldMatch(String key) Check if the key is of the form of the current matcher type which this factory instance represents..
-
Method Details
-
shouldMatch
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
Create a matcher instance for the key.- Parameters:
key- the key value conforms to a specific matcher specificationmodel- module model- Returns:
- the specific matcher instance
-