public class FieldReadInvocationWrapper extends FieldReadInvocation
field, index
advisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject
Constructor and Description |
---|
FieldReadInvocationWrapper(FieldReadInvocation wrapped,
Interceptor[] interceptors) |
Modifier and Type | Method and Description |
---|---|
void |
addResponseAttachment(Object key,
Object val) |
Invocation |
copy()
Copies complete state of Invocation object.
|
Advisor |
getAdvisor() |
Field |
getField()
This is the field the invocation is accessing
|
int |
getIndex()
This is an index into the Field[] array accessed through the ClassAdvisor
|
MetaDataResolver |
getInstanceResolver() |
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.
|
void |
setMetaData(SimpleMetaData data)
Set all the contextual data attached to this invocation
|
void |
setResponseContextInfo(Map<Object,Object> responseContextInfo) |
void |
setTargetObject(Object targetObject) |
getWrapper, invokeTarget, toString
resolveAnnotation, resolveTypedAnnotation
getCurrentInterceptor, getInterceptors, invokeNext, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, resolveTypedAnnotation, resolveTypedClassAnnotation, setAdvisor, setInstanceResolver
public FieldReadInvocationWrapper(FieldReadInvocation wrapped, Interceptor[] interceptors)
public Object getMetaData(Object group, Object attr)
FieldInvocation
getMetaData
in interface Invocation
getMetaData
in class FieldInvocation
public Object invokeNext() throws Throwable
FieldReadInvocation
invokeNext
in interface Invocation
invokeNext
in class FieldReadInvocation
Throwable
public MetaDataResolver getInstanceResolver()
getInstanceResolver
in class InvocationBase
public Invocation copy()
FieldReadInvocation
copy
in interface Invocation
copy
in class FieldReadInvocation
public Field getField()
FieldInvocation
getField
in class FieldInvocation
public int getIndex()
FieldInvocation
getIndex
in class FieldInvocation
public Map<Object,Object> getResponseContextInfo()
getResponseContextInfo
in interface Invocation
getResponseContextInfo
in class InvocationBase
public void setResponseContextInfo(Map<Object,Object> responseContextInfo)
setResponseContextInfo
in interface Invocation
setResponseContextInfo
in class InvocationBase
public void addResponseAttachment(Object key, Object val)
addResponseAttachment
in interface Invocation
addResponseAttachment
in class InvocationBase
public Object getResponseAttachment(Object key)
getResponseAttachment
in interface Invocation
getResponseAttachment
in class InvocationBase
public SimpleMetaData getMetaData()
InvocationBase
getMetaData
in interface Invocation
getMetaData
in class InvocationBase
public void setMetaData(SimpleMetaData data)
InvocationBase
setMetaData
in interface Invocation
setMetaData
in class InvocationBase
public Advisor getAdvisor()
getAdvisor
in interface Invocation
getAdvisor
in class InvocationBase
public Object getTargetObject()
getTargetObject
in interface Invocation
getTargetObject
in class InvocationBase
public void setTargetObject(Object targetObject)
setTargetObject
in interface Invocation
setTargetObject
in class InvocationBase
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.