Package org.jvnet.hk2.internal
Class MethodInterceptorHandler.MethodInvocationImpl
- java.lang.Object
-
- org.jvnet.hk2.internal.MethodInterceptorHandler.MethodInvocationImpl
-
- All Implemented Interfaces:
org.aopalliance.intercept.Invocation,org.aopalliance.intercept.Joinpoint,org.aopalliance.intercept.MethodInvocation,HK2Invocation
- Enclosing class:
- MethodInterceptorHandler
private class MethodInterceptorHandler.MethodInvocationImpl extends java.lang.Object implements org.aopalliance.intercept.MethodInvocation, HK2Invocation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]argumentsprivate intindexprivate java.util.List<org.aopalliance.intercept.MethodInterceptor>interceptorsprivate java.lang.reflect.Methodmethodprivate java.lang.Objectmyselfprivate java.lang.reflect.Methodproceedprivate java.util.HashMap<java.lang.String,java.lang.Object>userData
-
Constructor Summary
Constructors Modifier Constructor Description privateMethodInvocationImpl(java.lang.Object[] arguments, java.lang.reflect.Method method, java.lang.Object myself, java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors, int index, java.lang.reflect.Method proceed, 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.MethodgetMethod()java.lang.reflect.AccessibleObjectgetStaticPart()java.lang.ObjectgetThis()java.lang.ObjectgetUserData(java.lang.String key)Gets the user data associated with the given keyjava.lang.Objectproceed()voidsetUserData(java.lang.String key, java.lang.Object data)Sets the user data to be associated with the invocation frame.
-
-
-
Field Detail
-
arguments
private final java.lang.Object[] arguments
-
method
private final java.lang.reflect.Method method
-
myself
private final java.lang.Object myself
-
interceptors
private final java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors
-
index
private final int index
-
proceed
private final java.lang.reflect.Method proceed
-
userData
private java.util.HashMap<java.lang.String,java.lang.Object> userData
-
-
Constructor Detail
-
MethodInvocationImpl
private MethodInvocationImpl(java.lang.Object[] arguments, java.lang.reflect.Method method, java.lang.Object myself, java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors, int index, java.lang.reflect.Method proceed, java.util.HashMap<java.lang.String,java.lang.Object> userData)
-
-
Method Detail
-
getArguments
public java.lang.Object[] getArguments()
- Specified by:
getArgumentsin interfaceorg.aopalliance.intercept.Invocation
-
getStaticPart
public java.lang.reflect.AccessibleObject getStaticPart()
- Specified by:
getStaticPartin interfaceorg.aopalliance.intercept.Joinpoint
-
getThis
public java.lang.Object getThis()
- Specified by:
getThisin interfaceorg.aopalliance.intercept.Joinpoint
-
getMethod
public java.lang.reflect.Method getMethod()
- Specified by:
getMethodin interfaceorg.aopalliance.intercept.MethodInvocation
-
proceed
public java.lang.Object proceed() throws java.lang.Throwable- Specified by:
proceedin interfaceorg.aopalliance.intercept.Joinpoint- Throws:
java.lang.Throwable
-
setUserData
public void setUserData(java.lang.String key, java.lang.Object data)Description copied from interface:HK2InvocationSets 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:
setUserDatain 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:HK2InvocationGets the user data associated with the given key- Specified by:
getUserDatain 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
-
-