@Contract public interface InterceptorOrderingService
Modifier and Type | Method and Description |
---|---|
List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> |
modifyConstructorInterceptors(Constructor<?> constructor,
List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> currentList)
This method is called for each constructor that may be intercepted by the default
interception service.
|
List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> |
modifyMethodInterceptors(Method method,
List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> currentList)
This method is called for each method that may be intercepted by the default
interception service.
|
List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> modifyMethodInterceptors(Method method, List<ServiceHandle<org.aopalliance.intercept.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<org.aopalliance.intercept.ConstructorInterceptor>> modifyConstructorInterceptors(Constructor<?> constructor, List<ServiceHandle<org.aopalliance.intercept.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 and/or its affiliates. All Rights Reserved.