net.sf.tie.ext.rule
Class AndRule

java.lang.Object
  extended by net.sf.tie.ext.rule.AndRule
All Implemented Interfaces:
InterceptionRule

public class AndRule
extends Object
implements InterceptionRule

An InterceptionRule that forms a logical "and" of two other rules.


Constructor Summary
AndRule(InterceptionRule left, InterceptionRule right)
           
 
Method Summary
<T> ObjectInterceptionStrategy
shouldIntercept(Class<T> type, T target, 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
 

Constructor Detail

AndRule

public AndRule(InterceptionRule left,
               InterceptionRule right)
Method Detail

shouldIntercept

public <T> ObjectInterceptionStrategy shouldIntercept(Class<T> type,
                                                      T target,
                                                      MethodInterceptor interceptor)
Specified by:
shouldIntercept in interface InterceptionRule

shouldIntercept

public <T> MethodInterceptionStrategy shouldIntercept(WrappedMethodInvocation method,
                                                      MethodInterceptor interceptor)
Specified by:
shouldIntercept in interface InterceptionRule