net.sf.tie.ext.name
Class MethodNameRule

java.lang.Object
  extended by 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.


Constructor Summary
MethodNameRule()
           
MethodNameRule(String name)
           
 
Method Summary
 void addMatchingName(String name)
           
protected  boolean isMatch(Method method)
           
<T> ObjectInterceptionStrategy
shouldIntercept(Class<T> type, T endPoint, MethodInterceptor interceptor)
           
<T> MethodInterceptionStrategy
shouldIntercept(WrappedMethodInvocation method, MethodInterceptor interceptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.tie.ext.rule.InterceptionRule
shouldIntercept, shouldIntercept
 

Constructor Detail

MethodNameRule

public MethodNameRule()

MethodNameRule

public MethodNameRule(String name)
Method Detail

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