@Contract public interface InterceptorOrderingService
| Modifier and Type | Method and Description |
|---|---|
List<ServiceHandle<ConstructorInterceptor>> |
modifyConstructorInterceptors(Constructor<?> constructor,
List<ServiceHandle<ConstructorInterceptor>> currentList)
This method is called for each constructor that may be intercepted by the default
interception service.
|
List<ServiceHandle<MethodInterceptor>> |
modifyMethodInterceptors(Method method,
List<ServiceHandle<MethodInterceptor>> currentList)
This method is called for each method that may be intercepted by the default
interception service.
|
List<ServiceHandle<MethodInterceptor>> modifyMethodInterceptors(Method method, List<ServiceHandle<MethodInterceptor>> currentList)
If the implementation would like to return MethodInterceptors that are not hk2
services it is recommended that they use BuilderHelper.createConstantServiceHandle(Object)
to create ServiceHandles representing their MethodInterceptors.
method - The method that is to be interceptedcurrentList - The list that will be used to intercept the method if this
service returns nullList<ServiceHandle<ConstructorInterceptor>> modifyConstructorInterceptors(Constructor<?> constructor, List<ServiceHandle<ConstructorInterceptor>> currentList)
If the implementation would like to return ConstructorInterceptors that are not hk2
services it is recommended that they use BuilderHelper.createConstantServiceHandle(Object)
to create ServiceHandles representing their ConstructorInterceptors.
constructor - The constructor that is to be interceptedcurrentList - The list that will be used to intercept the constructor if this
service returns nullCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.