|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.aop.joinpoint.InvocationBase
This is a generic object that is used in intercepted invocations on field access, constructor, and methods
Field Summary | |
protected Advisor |
advisor
|
protected int |
currentInterceptor
|
protected MetaDataResolver |
instanceResolver
|
protected Interceptor[] |
interceptors
|
protected SimpleMetaData |
metadata
|
protected Map |
responseContextInfo
|
protected Object |
targetObject
|
Constructor Summary | |
InvocationBase()
|
|
InvocationBase(Interceptor[] interceptors)
|
|
InvocationBase(Interceptor[] interceptors,
SimpleMetaData meta)
|
|
InvocationBase(Invocation invocation)
Copy constructor. |
Method Summary | |
void |
addResponseAttachment(Object key,
Object val)
|
Advisor |
getAdvisor()
|
int |
getCurrentInterceptor()
|
MetaDataResolver |
getInstanceResolver()
|
Interceptor[] |
getInterceptors()
This used to be final, but I had to get rid of that since I need to lazily initialise the interceptors from the generated joinpoint/invocation classes |
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 |
getResponseContextInfo()
|
Object |
getTargetObject()
|
Object |
invokeNext()
Invoke on the next interceptor in the chain. |
Object |
invokeNext(Interceptor[] newInterceptors)
Invoke on the next interceptor in the chain. |
Object |
resolveAnnotation(Class annotation)
Abstraction for resolving an annotation so that it can be overriden from the Method, Constructor, Field, etc. |
Object |
resolveAnnotation(Class[] annotations)
Abstraction for resolving an annotation so that it can be overriden from the Method, Constructor, Field, etc. |
Object |
resolveClassAnnotation(Class annotation)
Abstraction for resolving an annotation so that it can be overriden from the Class |
Object |
resolveClassMetaData(Object key,
Object attr)
Resolve class level untyped metadata based on a key and the attribute of the key |
void |
setAdvisor(Advisor advisor)
|
void |
setInstanceResolver(MetaDataResolver instanceResolver)
|
void |
setMetaData(SimpleMetaData data)
Set all the contextual data attached to this invocation |
void |
setResponseContextInfo(Map responseContextInfo)
|
void |
setTargetObject(Object targetObject)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.aop.joinpoint.Invocation |
copy, getWrapper |
Field Detail |
protected SimpleMetaData metadata
protected transient int currentInterceptor
protected transient Interceptor[] interceptors
protected transient Advisor advisor
protected transient Map responseContextInfo
protected transient Object targetObject
protected transient MetaDataResolver instanceResolver
Constructor Detail |
public InvocationBase(Interceptor[] interceptors)
public InvocationBase(Interceptor[] interceptors, SimpleMetaData meta)
public InvocationBase(Invocation invocation)
public InvocationBase()
Method Detail |
public Map getResponseContextInfo()
getResponseContextInfo
in interface Invocation
public void setResponseContextInfo(Map responseContextInfo)
setResponseContextInfo
in interface Invocation
public void addResponseAttachment(Object key, Object val)
addResponseAttachment
in interface Invocation
public Object getResponseAttachment(Object key)
getResponseAttachment
in interface Invocation
public SimpleMetaData getMetaData()
getMetaData
in interface Invocation
public void setMetaData(SimpleMetaData data)
setMetaData
in interface Invocation
public Object resolveClassMetaData(Object key, Object attr)
Invocation
resolveClassMetaData
in interface Invocation
key
- attr
-
public int getCurrentInterceptor()
public Object invokeNext() throws Throwable
invokeNext
in interface Invocation
Throwable
public Object invokeNext(Interceptor[] newInterceptors) throws Throwable
invokeNext
in interface Invocation
Throwable
public Interceptor[] getInterceptors()
getInterceptors
in interface Invocation
public Object resolveClassAnnotation(Class annotation)
Invocation
resolveClassAnnotation
in interface Invocation
annotation
-
public Object resolveAnnotation(Class annotation)
Invocation
resolveAnnotation
in interface Invocation
annotation
-
public Object resolveAnnotation(Class[] annotations)
Invocation
resolveAnnotation
in interface Invocation
annotations
-
public Object getMetaData(Object group, Object attr)
getMetaData
in interface Invocation
public MetaDataResolver getInstanceResolver()
public Advisor getAdvisor()
getAdvisor
in interface Invocation
public Object getTargetObject()
getTargetObject
in interface Invocation
public void setTargetObject(Object targetObject)
setTargetObject
in interface Invocation
public void setAdvisor(Advisor advisor)
public void setInstanceResolver(MetaDataResolver instanceResolver)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |