@Singleton @Visibility(value=LOCAL) public class DefaultInterceptionService extends Object implements InterceptionService
| Constructor and Description |
|---|
DefaultInterceptionService() |
| Modifier and Type | Method and Description |
|---|---|
List<org.aopalliance.intercept.ConstructorInterceptor> |
getConstructorInterceptors(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 |
List<org.aopalliance.intercept.MethodInterceptor> |
getMethodInterceptors(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 List<org.aopalliance.intercept.MethodInterceptor> getMethodInterceptors(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 List<org.aopalliance.intercept.ConstructorInterceptor> getConstructorInterceptors(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 interceptedCopyright © 2009–2017 Oracle Corporation. All rights reserved.