public interface HK2Invocation
MethodInvocation
object
passed to the invoke method of MethodInterceptor
and the ConstructorInvocation
object
passed to the invoke method of ConstructorInterceptor
.
It allows HK2 users of the AOP interception feature to easily pass
data between interceptors on the same invocatio stackModifier and Type | Method and Description |
---|---|
Object |
getUserData(String key)
Gets the user data associated with the given key
|
void |
setUserData(String key,
Object data)
Sets the user data to be associated with the invocation
frame.
|
void setUserData(String key, Object data)
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
mapCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.