public interface Invocation
Modifier and Type | Method and Description |
---|---|
void |
addResponseAttachment(Object key,
Object val) |
Invocation |
copy()
Copies complete state of Invocation object so that it could possibly
be reused in a spawned thread.
|
Advisor |
getAdvisor() |
Interceptor[] |
getInterceptors() |
SimpleMetaData |
getMetaData()
Return all the contextual untyped data attached to this invocation
|
Object |
getMetaData(Object group,
Object attr)
This method resolves untyped metadata based on the context of the invocation.
|
Object |
getResponseAttachment(Object key) |
Map<Object,Object> |
getResponseContextInfo() |
Object |
getTargetObject() |
Invocation |
getWrapper(Interceptor[] newchain)
Get a wrapper invocation object that can insert a new chain of interceptors
at runtime to the invocation flow.
|
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 |
setMetaData(SimpleMetaData data)
Set all the contextual untyped data attached to this invocation
|
void |
setResponseContextInfo(Map<Object,Object> responseContextInfo) |
void |
setTargetObject(Object targetObject) |
SimpleMetaData getMetaData()
void setMetaData(SimpleMetaData data)
Object resolveClassMetaData(Object key, Object attr)
key
- attr
- Object resolveClassAnnotation(Class<? extends Annotation> annotation)
annotation
- <T extends Annotation> T resolveTypedClassAnnotation(Class<T> annotation)
annotation
- Object resolveAnnotation(Class<? extends Annotation> annotation)
annotation
- <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation)
annotation
- Object resolveAnnotation(Class<? extends Annotation>[] annotations)
annotations
- <T extends Annotation> T resolveTypedAnnotation(Class<T>[] annotations)
annotations
- Object invokeNext() throws Throwable
Throwable
Object invokeTarget() throws Throwable
Throwable
Object invokeNext(Interceptor[] newInterceptors) throws Throwable
Throwable
Interceptor[] getInterceptors()
Object getMetaData(Object group, Object attr)
Object getTargetObject()
void setTargetObject(Object targetObject)
Invocation getWrapper(Interceptor[] newchain)
newchain
- Invocation copy()
Advisor getAdvisor()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.