public class ConstructionInvocationWrapper extends ConstructorInvocation
arguments, constructoradvisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject| Constructor and Description |
|---|
ConstructionInvocationWrapper(ConstructionInvocation wrapped,
Interceptor[] interceptors) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResponseAttachment(Object key,
Object val) |
Invocation |
copy()
Copies complete state of Invocation object.
|
Advisor |
getAdvisor() |
Object[] |
getArguments()
Returns a non-null array containing all constructor arguments.
|
Constructor<?> |
getConstructor() |
MetaDataResolver |
getInstanceResolver() |
SimpleMetaData |
getMetaData()
Return all the contextual data attached to this invocation
|
Object |
getMetaData(Object group,
Object attr)
This method resolves metadata based on the context of the invocation.
|
Object |
getResponseAttachment(Object key) |
Map<Object,Object> |
getResponseContextInfo() |
Object |
getTargetObject() |
Object |
invokeNext()
Invoke on the next interceptor in the chain.
|
void |
setArguments(Object[] args)
Replaces constructor argument values by the ones contained in
arguments. |
void |
setMetaData(SimpleMetaData data)
Set all the contextual data attached to this invocation
|
void |
setResponseContextInfo(Map<Object,Object> responseContextInfo) |
void |
setTargetObject(Object targetObject) |
getWrapper, invokeTarget, resolveAnnotation, resolveTypedAnnotation, setConstructor, toStringgetCurrentInterceptor, getInterceptors, invokeNext, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, resolveTypedAnnotation, resolveTypedClassAnnotation, setAdvisor, setInstanceResolverpublic ConstructionInvocationWrapper(ConstructionInvocation wrapped, Interceptor[] interceptors)
public Object getMetaData(Object group, Object attr)
ConstructorInvocationgetMetaData in interface InvocationgetMetaData in class ConstructorInvocationpublic Object invokeNext() throws Throwable
ConstructorInvocationinvokeNext in interface InvocationinvokeNext in class ConstructorInvocationThrowablepublic MetaDataResolver getInstanceResolver()
getInstanceResolver in class InvocationBasepublic Object[] getArguments()
ConstructorInvocation
The returned array can be changed by the advice or interceptor accordingly. All
changes are reflected on joinpoint execution, and are noticed as well by
other advices and interceptors that are executed after the current one.
However, changes to this array are limited to the scope of current advice
execution, and must be performed before execution of ConstructorInvocation.invokeNext(),
InvocationBase.invokeNext(Interceptor[]), or ConstructorInvocation.invokeTarget() method.
Otherwise, inconsistency on joinpoint argument values may be noticed.
getArguments in class ConstructorInvocationpublic void setArguments(Object[] args)
ConstructorInvocation
arguments.
Advices and interceptors must be aware that, for performance reasons,
this array does not get copied across; its reference is directly used instead.
Hence, changes to arguments array after this method being called
are forbidden. Otherwise, inconsistency on joinpoint argument values may be
noticed.
setArguments in class ConstructorInvocationargs - a non-null array containing the new values of constructor
arguments. The size of this array must be the same as the one
of ConstructorInvocation.getArguments(), as well as the element types.public Invocation copy()
ConstructorInvocationcopy in interface Invocationcopy in class ConstructorInvocationpublic Constructor<?> getConstructor()
getConstructor in class ConstructorInvocationpublic Map<Object,Object> getResponseContextInfo()
getResponseContextInfo in interface InvocationgetResponseContextInfo in class InvocationBasepublic void setResponseContextInfo(Map<Object,Object> responseContextInfo)
setResponseContextInfo in interface InvocationsetResponseContextInfo in class InvocationBasepublic void addResponseAttachment(Object key, Object val)
addResponseAttachment in interface InvocationaddResponseAttachment in class InvocationBasepublic Object getResponseAttachment(Object key)
getResponseAttachment in interface InvocationgetResponseAttachment in class InvocationBasepublic SimpleMetaData getMetaData()
InvocationBasegetMetaData in interface InvocationgetMetaData in class InvocationBasepublic void setMetaData(SimpleMetaData data)
InvocationBasesetMetaData in interface InvocationsetMetaData in class InvocationBasepublic Advisor getAdvisor()
getAdvisor in interface InvocationgetAdvisor in class InvocationBasepublic Object getTargetObject()
getTargetObject in interface InvocationgetTargetObject in class InvocationBasepublic void setTargetObject(Object targetObject)
setTargetObject in interface InvocationsetTargetObject in class InvocationBaseCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.