public class InterceptorChain extends Object implements org.aopalliance.intercept.MethodInterceptor
An adaptation of Guice's InterceptorStackCallback
(author: Bob Lee), but generalized to use the AOP alliance interfaces. This class is used to hold a chain of
MethodInterceptors, which are invoked in order by the proxy. Any interceptor that
does not call MethodInvocation#proceed() will effectively short-circuit the traversal of the chain and
prevent the target from being called.
| Constructor and Description |
|---|
InterceptorChain(List<org.aopalliance.intercept.MethodInterceptor> interceptorList) |
InterceptorChain(org.aopalliance.intercept.MethodInterceptor... interceptors) |
public InterceptorChain(List<org.aopalliance.intercept.MethodInterceptor> interceptorList)
public InterceptorChain(org.aopalliance.intercept.MethodInterceptor... interceptors)
public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptormethodInvocation - The method invocationThrowableCopyright © 2014. All rights reserved.