public class ExecutorMethodMatcher extends java.lang.Object implements ExecutorMatcher
ExecutorMatcher
matches using a mapping from a class name to a StringMatcher
for matching method names. Use if the Executor
handles a selection of methods from
specific classes.Modifier and Type | Class and Description |
---|---|
static class |
ExecutorMethodMatcher.Builder
Builds an
ExecutorMethodMatcher |
Constructor and Description |
---|
ExecutorMethodMatcher(java.util.Map<java.lang.String,StringMatcher> methodMatchers)
Creates an
ExecutorMethodMatcher that supports methods given by a mapping from a
specific class name to supported method names given by a StringMatcher |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(MethodSignature methodSignature)
Returns whether a method matches.
|
public ExecutorMethodMatcher(java.util.Map<java.lang.String,StringMatcher> methodMatchers)
ExecutorMethodMatcher
that supports methods given by a mapping from a
specific class name to supported method names given by a StringMatcher
methodMatchers
- The mapping of classes to supported methods.public boolean matches(MethodSignature methodSignature)
ExecutorMatcher
matches
in interface ExecutorMatcher
methodSignature
- The method signature.