Package org.jvnet.hk2.internal
Class ConstructorInterceptorHandler
java.lang.Object
org.jvnet.hk2.internal.ConstructorInterceptorHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
construct
(Constructor<?> c, Object[] args, boolean neutralCCL, List<org.aopalliance.intercept.ConstructorInterceptor> interceptors) Call this to construct objects taking constructor interceptors into considerationstatic Object
construct
(Constructor<?> c, Object[] args, boolean neutralCCL, List<org.aopalliance.intercept.ConstructorInterceptor> interceptors, ConstructorAction action) Call this to construct objects taking constructor interceptors into consideration
-
Field Details
-
DEFAULT_ACTION
-
-
Constructor Details
-
ConstructorInterceptorHandler
public ConstructorInterceptorHandler()
-
-
Method Details
-
construct
public static Object construct(Constructor<?> c, Object[] args, boolean neutralCCL, List<org.aopalliance.intercept.ConstructorInterceptor> interceptors, ConstructorAction action) throws Throwable Call this to construct objects taking constructor interceptors into consideration- Parameters:
c
- The constructor to invokeargs
- The arguments to give to the constructor (intially)neutralCCL
- Whether or not CCL should be neutral around calls to the constructorinterceptors
- The set of interceptors (may be null or empty)action
- The action to perform to construct the object- Returns:
- The constructed object (as massaged by the interceptors)
- Throws:
Throwable
- On error
-
construct
public static Object construct(Constructor<?> c, Object[] args, boolean neutralCCL, List<org.aopalliance.intercept.ConstructorInterceptor> interceptors) throws Throwable Call this to construct objects taking constructor interceptors into consideration- Parameters:
c
- The constructor to invokeargs
- The arguments to give to the constructor (intially)neutralCCL
- Whether or not CCL should be neutral around calls to the constructorinterceptors
- The set of interceptors (may be null or empty)- Returns:
- The constructed object (as massaged by the interceptors)
- Throws:
Throwable
- On error
-