net.sf.tie.ext.rule
Class OrRule

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

public class OrRule
extends Object
implements InterceptionRule

Forms a logical "or" of two other InterceptionRule implementations


Constructor Summary
OrRule(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

OrRule

public OrRule(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