public abstract class InvocationBase extends Object implements Serializable, Invocation
| Modifier and Type | Field and Description |
|---|---|
protected Advisor |
advisor |
protected int |
currentInterceptor |
protected MetaDataResolver |
instanceResolver |
protected Interceptor[] |
interceptors |
protected SimpleMetaData |
metadata |
protected Map<Object,Object> |
responseContextInfo |
protected Object |
targetObject |
| Constructor and Description |
|---|
InvocationBase() |
InvocationBase(Interceptor[] interceptors) |
InvocationBase(Interceptor[] interceptors,
SimpleMetaData meta) |
InvocationBase(Invocation invocation)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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<Object,Object> |
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 |
invokeTarget()
Invokes the target joinpoint for this invocation skipping any subsequent
interceptors in the chain.
|
Object |
resolveAnnotation(Class<? extends Annotation> annotation)
Abstraction for resolving an annotation so that
it can be overriden from the Method, Constructor, Field, etc.
|
Object |
resolveAnnotation(Class<? extends Annotation>[] annotations)
Abstraction for resolving an annotation so that
it can be overriden from the Method, Constructor, Field, etc.
|
Object |
resolveClassAnnotation(Class<? extends Annotation> 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
|
<T extends Annotation> |
resolveTypedAnnotation(Class<T> annotation)
Abstraction for resolving an annotation so that
it can be overriden from the Method, Constructor, Field, etc.
|
<T extends Annotation> |
resolveTypedAnnotation(Class<T>[] annotations)
Abstraction for resolving an annotation so that
it can be overriden from the Method, Constructor, Field, etc.
|
<T extends Annotation> |
resolveTypedClassAnnotation(Class<T> annotation)
Abstraction for resolving an annotation so that
it can be overriden from the Class
|
void |
setAdvisor(Advisor advisor) |
void |
setInstanceResolver(MetaDataResolver instanceResolver) |
void |
setMetaData(SimpleMetaData data)
Set all the contextual data attached to this invocation
|
void |
setResponseContextInfo(Map<Object,Object> responseContextInfo) |
void |
setTargetObject(Object targetObject) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, getWrapperprotected SimpleMetaData metadata
protected transient int currentInterceptor
protected transient Interceptor[] interceptors
protected transient Advisor advisor
protected transient Object targetObject
protected transient MetaDataResolver instanceResolver
public InvocationBase(Interceptor[] interceptors)
public InvocationBase(Interceptor[] interceptors, SimpleMetaData meta)
public InvocationBase(Invocation invocation)
public InvocationBase()
public Map<Object,Object> getResponseContextInfo()
getResponseContextInfo in interface Invocationpublic void setResponseContextInfo(Map<Object,Object> responseContextInfo)
setResponseContextInfo in interface Invocationpublic 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 Invocationpublic Object resolveClassMetaData(Object key, Object attr)
InvocationresolveClassMetaData in interface Invocationpublic int getCurrentInterceptor()
public Object invokeNext() throws Throwable
invokeNext in interface InvocationThrowablepublic Object invokeTarget() throws Throwable
invokeTarget in interface InvocationThrowablepublic Object invokeNext(Interceptor[] newInterceptors) throws Throwable
invokeNext in interface InvocationThrowablepublic Interceptor[] getInterceptors()
getInterceptors in interface Invocationpublic Object resolveClassAnnotation(Class<? extends Annotation> annotation)
InvocationresolveClassAnnotation in interface Invocationpublic <T extends Annotation> T resolveTypedClassAnnotation(Class<T> annotation)
InvocationresolveTypedClassAnnotation in interface Invocationpublic Object resolveAnnotation(Class<? extends Annotation> annotation)
InvocationresolveAnnotation in interface Invocationpublic <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation)
InvocationresolveTypedAnnotation in interface Invocationpublic Object resolveAnnotation(Class<? extends Annotation>[] annotations)
InvocationresolveAnnotation in interface Invocationpublic <T extends Annotation> T resolveTypedAnnotation(Class<T>[] annotations)
InvocationresolveTypedAnnotation in interface Invocationpublic 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)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.