net.sf.tie.ext.rule
Class ConditionalInterceptor

java.lang.Object
  extended by net.sf.tie.ext.rule.ConditionalInterceptor
All Implemented Interfaces:
Advice, Interceptor, MethodInterceptor

public class ConditionalInterceptor
extends Object
implements MethodInterceptor

A ConditionalInterceptor consults an InterceptionRule to detemine which methods should be intercepted. Where interception is required, it is delegated to a MethodInterceptor implementation.


Constructor Summary
ConditionalInterceptor(InterceptionRule rule, MethodInterceptor interceptor)
           
 
Method Summary
 Object invoke(MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalInterceptor

public ConditionalInterceptor(InterceptionRule rule,
                              MethodInterceptor interceptor)
Method Detail

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface MethodInterceptor
Throws:
Throwable