|
JBoss AOP Parent POM 2.2.2.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.aop.joinpoint.InvocationBase
org.jboss.aop.joinpoint.CallerInvocation
org.jboss.aop.joinpoint.ConstructorCalledByMethodInvocation
org.jboss.aop.joinpoint.ConstructorCalledByMethodInvocationWrapper
public class ConstructorCalledByMethodInvocationWrapper
Comment
Field Summary |
---|
Fields inherited from class org.jboss.aop.joinpoint.ConstructorCalledByMethodInvocation |
---|
callingClass, callingMethod, constructor, wrappingMethod |
Fields inherited from class org.jboss.aop.joinpoint.CallerInvocation |
---|
arguments, callingObject |
Fields inherited from class org.jboss.aop.joinpoint.InvocationBase |
---|
advisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject |
Constructor Summary | |
---|---|
ConstructorCalledByMethodInvocationWrapper(ConstructorCalledByMethodInvocation wrapped,
Interceptor[] interceptors)
|
Method Summary | |
---|---|
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 call arguments. |
Constructor<?> |
getCalledConstructor()
|
Class<?> |
getCallingClass()
|
Method |
getCallingMethod()
|
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()
|
Method |
getWrappingMethod()
Is the called constructor aspectized? If so then this method returns the method that wraps the constructor. |
Object |
invokeNext()
Invoke on the next interceptor in the chain. |
boolean |
isWrapped()
Is the called constructor aspectized? If so then there is a wrapping method that must be called. |
void |
setArguments(Object[] arguments)
Replaces call 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)
|
Methods inherited from class org.jboss.aop.joinpoint.ConstructorCalledByMethodInvocation |
---|
getWrapper, invokeTarget |
Methods inherited from class org.jboss.aop.joinpoint.CallerInvocation |
---|
getCallingObject |
Methods inherited from class org.jboss.aop.joinpoint.InvocationBase |
---|
getCurrentInterceptor, getInterceptors, invokeNext, resolveAnnotation, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, resolveTypedAnnotation, resolveTypedAnnotation, resolveTypedClassAnnotation, setAdvisor, setInstanceResolver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstructorCalledByMethodInvocationWrapper(ConstructorCalledByMethodInvocation wrapped, Interceptor[] interceptors)
Method Detail |
---|
public Object getMetaData(Object group, Object attr)
ConstructorCalledByMethodInvocation
getMetaData
in interface Invocation
getMetaData
in class ConstructorCalledByMethodInvocation
public Object invokeNext() throws Throwable
ConstructorCalledByMethodInvocation
invokeNext
in interface Invocation
invokeNext
in class ConstructorCalledByMethodInvocation
Throwable
public MetaDataResolver getInstanceResolver()
getInstanceResolver
in class InvocationBase
public Class<?> getCallingClass()
getCallingClass
in class ConstructorCalledByMethodInvocation
public Method getCallingMethod()
getCallingMethod
in class ConstructorCalledByMethodInvocation
public Constructor<?> getCalledConstructor()
getCalledConstructor
in class ConstructorCalledByMethodInvocation
public boolean isWrapped()
ConstructorCalledByMethodInvocation
isWrapped
in class ConstructorCalledByMethodInvocation
true
if the constructor is wrappedpublic Method getWrappingMethod()
ConstructorCalledByMethodInvocation
getWrappingMethod
in class ConstructorCalledByMethodInvocation
ConstructorCalledByMethodInvocation.isWrapped()
returns
true
; null
otherwise.public Invocation copy()
ConstructorCalledByMethodInvocation
copy
in interface Invocation
copy
in class ConstructorCalledByMethodInvocation
public Advisor getAdvisor()
getAdvisor
in interface Invocation
getAdvisor
in class InvocationBase
public Object getTargetObject()
getTargetObject
in interface Invocation
getTargetObject
in class InvocationBase
public void setTargetObject(Object targetObject)
setTargetObject
in interface Invocation
setTargetObject
in class InvocationBase
public Map<Object,Object> getResponseContextInfo()
getResponseContextInfo
in interface Invocation
getResponseContextInfo
in class InvocationBase
public void setResponseContextInfo(Map<Object,Object> responseContextInfo)
setResponseContextInfo
in interface Invocation
setResponseContextInfo
in class InvocationBase
public void addResponseAttachment(Object key, Object val)
addResponseAttachment
in interface Invocation
addResponseAttachment
in class InvocationBase
public Object getResponseAttachment(Object key)
getResponseAttachment
in interface Invocation
getResponseAttachment
in class InvocationBase
public SimpleMetaData getMetaData()
InvocationBase
getMetaData
in interface Invocation
getMetaData
in class InvocationBase
public void setMetaData(SimpleMetaData data)
InvocationBase
setMetaData
in interface Invocation
setMetaData
in class InvocationBase
public Object[] getArguments()
CallerInvocation
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 InvocationBase.invokeNext()
,
InvocationBase.invokeNext(Interceptor[])
, or InvocationBase.invokeTarget()
method.
Otherwise, inconsistency on joinpoint argument values may be noticed.
getArguments
in class CallerInvocation
public void setArguments(Object[] arguments)
CallerInvocation
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 CallerInvocation
arguments
- a non-null array containing the new values of call arguments.
The size of this array must be the same as the one of
CallerInvocation.getArguments()
, as well as the element types.
|
JBoss AOP Parent POM 2.2.2.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |