net.sf.tie.ext.name
Class MethodNameRule
java.lang.Object
net.sf.tie.ext.name.MethodNameRule
- All Implemented Interfaces:
- InterceptionRule
public class MethodNameRule
- extends Object
- implements InterceptionRule
An InterceptionRule
that does an exact match of a method's name.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodNameRule
public MethodNameRule()
MethodNameRule
public MethodNameRule(String name)
addMatchingName
public void addMatchingName(String name)
isMatch
protected boolean isMatch(Method method)
shouldIntercept
public <T> ObjectInterceptionStrategy shouldIntercept(Class<T> type,
T endPoint,
MethodInterceptor interceptor)
- Specified by:
shouldIntercept
in interface InterceptionRule
shouldIntercept
public <T> MethodInterceptionStrategy shouldIntercept(WrappedMethodInvocation method,
MethodInterceptor interceptor)
- Specified by:
shouldIntercept
in interface InterceptionRule