Package com.ultikits.ultitools.aop
Class AopProxyResolver.AdvisorScopedInterceptor
java.lang.Object
com.ultikits.ultitools.aop.AopProxyResolver.AdvisorScopedInterceptor
- All Implemented Interfaces:
MethodInterceptor
- Enclosing class:
AopProxyResolver
private static class AopProxyResolver.AdvisorScopedInterceptor
extends Object
implements MethodInterceptor
Applies an advisor's interceptor only to the methods that advisor matches.
The proxy binds one interceptor chain per class, but different advisors may match different subsets of its methods. This wrapper re-checks per invocation and steps aside otherwise.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(MethodInvocation invocation) Intercept the given method invocation.
-
Field Details
-
advisor
-
beanClass
-
-
Constructor Details
-
AdvisorScopedInterceptor
AdvisorScopedInterceptor(AopAdvisor advisor, Class<?> beanClass)
-
-
Method Details
-
invoke
Description copied from interface:MethodInterceptorIntercept the given method invocation.Implementations should call
MethodInvocation.proceed()to continue the interceptor chain or invoke the target method.- Specified by:
invokein interfaceMethodInterceptor- Parameters:
invocation- the method invocation context- Returns:
- the result of the method invocation
- Throws:
Throwable- if the interceptor or target method throws an exception
-