net.sf.tie.ext.rule
Class ConditionalInterceptor
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConditionalInterceptor
public ConditionalInterceptor(InterceptionRule rule,
MethodInterceptor interceptor)
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Throws:
Throwable