@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()
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 List<org.aopalliance.intercept.MethodInterceptor> getMethodInterceptors(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 List<org.aopalliance.intercept.ConstructorInterceptor> getConstructorInterceptors(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 interceptedCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.