|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 Invocationpublic void setResponseContextInfo(Map responseContextInfo)
setResponseContextInfo in interface Invocation
public void addResponseAttachment(Object key,
Object val)
addResponseAttachment in interface Invocationpublic Object getResponseAttachment(Object key)
getResponseAttachment in interface Invocationpublic SimpleMetaData getMetaData()
getMetaData in interface Invocationpublic void setMetaData(SimpleMetaData data)
setMetaData in interface Invocation
public Object resolveClassMetaData(Object key,
Object attr)
Invocation
resolveClassMetaData in interface Invocationkey - attr -
public int getCurrentInterceptor()
public Object invokeNext()
throws Throwable
invokeNext in interface InvocationThrowable
public Object invokeNext(Interceptor[] newInterceptors)
throws Throwable
invokeNext in interface InvocationThrowablepublic Interceptor[] getInterceptors()
getInterceptors in interface Invocationpublic Object resolveClassAnnotation(Class annotation)
Invocation
resolveClassAnnotation in interface Invocationannotation -
public Object resolveAnnotation(Class annotation)
Invocation
resolveAnnotation in interface Invocationannotation -
public Object resolveAnnotation(Class[] annotations)
Invocation
resolveAnnotation in interface Invocationannotations -
public Object getMetaData(Object group,
Object attr)
getMetaData in interface Invocationpublic MetaDataResolver getInstanceResolver()
public Advisor getAdvisor()
getAdvisor in interface Invocationpublic Object getTargetObject()
getTargetObject in interface Invocationpublic void setTargetObject(Object targetObject)
setTargetObject in interface Invocationpublic 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 | ||||||||||