@Contract public interface InterceptorOrderingService
Modifier and Type | Method and Description |
---|---|
java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> |
modifyConstructorInterceptors(java.lang.reflect.Constructor<?> constructor,
java.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> currentList)
This method is called for each constructor that may be intercepted by the default
interception service.
|
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> |
modifyMethodInterceptors(java.lang.reflect.Method method,
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> currentList)
This method is called for each method that may be intercepted by the default
interception service.
|
java.util.List<ServiceHandle<org.aopalliance.intercept.MethodInterceptor>> modifyMethodInterceptors(java.lang.reflect.Method method, java.util.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 nulljava.util.List<ServiceHandle<org.aopalliance.intercept.ConstructorInterceptor>> modifyConstructorInterceptors(java.lang.reflect.Constructor<?> constructor, java.util.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 null