@Service public class InterceptionServiceImpl extends java.lang.Object implements InterceptionService
| Modifier and Type | Field and Description |
|---|---|
private org.aopalliance.intercept.MethodInterceptor |
interceptor |
| Constructor and Description |
|---|
InterceptionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.aopalliance.intercept.ConstructorInterceptor> |
getConstructorInterceptors(java.lang.reflect.Constructor<?> constructor)
The single chosen constructor of a service that passes the
InterceptionService.getDescriptorFilter() method will be passed
to this method to determine if it will intercepted |
Filter |
getDescriptorFilter()
If the returned filter returns true then the methods
of the service will be passed to
InterceptionService.getMethodInterceptors(Method)
to determine if a method should be intercepted and the
constructor of the service will be passed to
InterceptionService.getConstructorInterceptors(Constructor) to
determine if the constructor should be intercepted |
java.util.List<org.aopalliance.intercept.MethodInterceptor> |
getMethodInterceptors(java.lang.reflect.Method method)
Each non-final method of a service that passes the
InterceptionService.getDescriptorFilter() method will be passed
to this method to determine if it will intercepted |
public Filter getDescriptorFilter()
InterceptionServiceInterceptionService.getMethodInterceptors(Method)
to determine if a method should be intercepted and the
constructor of the service will be passed to
InterceptionService.getConstructorInterceptors(Constructor) to
determine if the constructor should be interceptedgetDescriptorFilter in interface InterceptionServicepublic java.util.List<org.aopalliance.intercept.MethodInterceptor> getMethodInterceptors(java.lang.reflect.Method method)
InterceptionServiceInterceptionService.getDescriptorFilter() method will be passed
to this method to determine if it will interceptedgetMethodInterceptors in interface InterceptionServicemethod - A non-final method that may
be interceptedpublic java.util.List<org.aopalliance.intercept.ConstructorInterceptor> getConstructorInterceptors(java.lang.reflect.Constructor<?> constructor)
InterceptionServiceInterceptionService.getDescriptorFilter() method will be passed
to this method to determine if it will interceptedgetConstructorInterceptors in interface InterceptionServiceconstructor - A constructor that may
be intercepted