Package org.jvnet.hk2.internal
Class ConstructorInterceptorHandler.ConstructorInvocationImpl
- java.lang.Object
-
- org.jvnet.hk2.internal.ConstructorInterceptorHandler.ConstructorInvocationImpl
-
- All Implemented Interfaces:
org.aopalliance.intercept.ConstructorInvocation
,org.aopalliance.intercept.Invocation
,org.aopalliance.intercept.Joinpoint
,HK2Invocation
- Enclosing class:
- ConstructorInterceptorHandler
private static class ConstructorInterceptorHandler.ConstructorInvocationImpl extends java.lang.Object implements org.aopalliance.intercept.ConstructorInvocation, HK2Invocation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
args
private java.lang.reflect.Constructor<?>
c
private ConstructorAction
finalAction
private int
index
private java.util.List<org.aopalliance.intercept.ConstructorInterceptor>
interceptors
private java.lang.Object
myThis
private boolean
neutralCCL
private java.util.HashMap<java.lang.String,java.lang.Object>
userData
-
Constructor Summary
Constructors Modifier Constructor Description private
ConstructorInvocationImpl(java.lang.reflect.Constructor<?> c, java.lang.Object[] args, boolean neutralCCL, ConstructorAction finalAction, int index, java.util.List<org.aopalliance.intercept.ConstructorInterceptor> interceptors, java.util.HashMap<java.lang.String,java.lang.Object> userData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getArguments()
java.lang.reflect.Constructor
getConstructor()
java.lang.reflect.AccessibleObject
getStaticPart()
java.lang.Object
getThis()
java.lang.Object
getUserData(java.lang.String key)
Gets the user data associated with the given keyjava.lang.Object
proceed()
void
setUserData(java.lang.String key, java.lang.Object data)
Sets the user data to be associated with the invocation frame.
-
-
-
Field Detail
-
c
private final java.lang.reflect.Constructor<?> c
-
args
private final java.lang.Object[] args
-
neutralCCL
private final boolean neutralCCL
-
myThis
private java.lang.Object myThis
-
index
private final int index
-
finalAction
private final ConstructorAction finalAction
-
interceptors
private final java.util.List<org.aopalliance.intercept.ConstructorInterceptor> interceptors
-
userData
private java.util.HashMap<java.lang.String,java.lang.Object> userData
-
-
Constructor Detail
-
ConstructorInvocationImpl
private ConstructorInvocationImpl(java.lang.reflect.Constructor<?> c, java.lang.Object[] args, boolean neutralCCL, ConstructorAction finalAction, int index, java.util.List<org.aopalliance.intercept.ConstructorInterceptor> interceptors, java.util.HashMap<java.lang.String,java.lang.Object> userData)
-
-
Method Detail
-
getArguments
public java.lang.Object[] getArguments()
- Specified by:
getArguments
in interfaceorg.aopalliance.intercept.Invocation
-
getStaticPart
public java.lang.reflect.AccessibleObject getStaticPart()
- Specified by:
getStaticPart
in interfaceorg.aopalliance.intercept.Joinpoint
-
getThis
public java.lang.Object getThis()
- Specified by:
getThis
in interfaceorg.aopalliance.intercept.Joinpoint
-
proceed
public java.lang.Object proceed() throws java.lang.Throwable
- Specified by:
proceed
in interfaceorg.aopalliance.intercept.Joinpoint
- Throws:
java.lang.Throwable
-
getConstructor
public java.lang.reflect.Constructor getConstructor()
- Specified by:
getConstructor
in interfaceorg.aopalliance.intercept.ConstructorInvocation
-
setUserData
public void setUserData(java.lang.String key, java.lang.Object data)
Description copied from interface:HK2Invocation
Sets the user data to be associated with the invocation frame. The key may not be null. If data is null then the data associated with the key is removed- Specified by:
setUserData
in interfaceHK2Invocation
- Parameters:
key
- a non-null identifier for user data to be associated with the invocation framedata
- possibly null data. If non-null it will replace any value previously associated with the key. If null it will remove the key from the map
-
getUserData
public java.lang.Object getUserData(java.lang.String key)
Description copied from interface:HK2Invocation
Gets the user data associated with the given key- Specified by:
getUserData
in interfaceHK2Invocation
- Parameters:
key
- The key for which to get data. May not be null- Returns:
- The user data previously associated with this key, or null if there was no user data associated with this key
-
-