net.sf.tie.ext.rule
Class NotRule

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

public class NotRule
extends Object
implements InterceptionRule

Inverts an InterceptionRule


Constructor Summary
NotRule(InterceptionRule rule)
           
 
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

NotRule

public NotRule(InterceptionRule rule)
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