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, wait
copy, getWrapper
protected 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 Invocation
public void setResponseContextInfo(Map<Object,Object> 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
public int getCurrentInterceptor()
public Object invokeNext() throws Throwable
invokeNext
in interface Invocation
Throwable
public Object invokeTarget() throws Throwable
invokeTarget
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<? extends Annotation> annotation)
Invocation
resolveClassAnnotation
in interface Invocation
public <T extends Annotation> T resolveTypedClassAnnotation(Class<T> annotation)
Invocation
resolveTypedClassAnnotation
in interface Invocation
public Object resolveAnnotation(Class<? extends Annotation> annotation)
Invocation
resolveAnnotation
in interface Invocation
public <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation)
Invocation
resolveTypedAnnotation
in interface Invocation
public Object resolveAnnotation(Class<? extends Annotation>[] annotations)
Invocation
resolveAnnotation
in interface Invocation
public <T extends Annotation> T resolveTypedAnnotation(Class<T>[] annotations)
Invocation
resolveTypedAnnotation
in interface Invocation
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)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.