@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()
InterceptionService
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 interceptedgetDescriptorFilter
in interface InterceptionService
public java.util.List<org.aopalliance.intercept.MethodInterceptor> getMethodInterceptors(java.lang.reflect.Method method)
InterceptionService
InterceptionService.getDescriptorFilter()
method will be passed
to this method to determine if it will interceptedgetMethodInterceptors
in interface InterceptionService
method
- A non-final method that may
be interceptedpublic java.util.List<org.aopalliance.intercept.ConstructorInterceptor> getConstructorInterceptors(java.lang.reflect.Constructor<?> constructor)
InterceptionService
InterceptionService.getDescriptorFilter()
method will be passed
to this method to determine if it will interceptedgetConstructorInterceptors
in interface InterceptionService
constructor
- A constructor that may
be intercepted