net.sf.tie.ext.name
Class MethodPatternRule

java.lang.Object
  extended by net.sf.tie.ext.name.MethodPatternRule
All Implemented Interfaces:
InterceptionRule

public class MethodPatternRule
extends Object
implements InterceptionRule

An InterceptionRule that does a regular expression match on a method's name.


Constructor Summary
MethodPatternRule()
           
MethodPatternRule(String pattern)
           
 
Method Summary
 void addMatchingPattern(String pattern)
           
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

MethodPatternRule

public MethodPatternRule()

MethodPatternRule

public MethodPatternRule(String pattern)
Method Detail

addMatchingPattern

public void addMatchingPattern(String pattern)

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