public abstract class FieldInvocation extends InvocationBase
Modifier and Type | Field and Description |
---|---|
protected Field |
field |
protected int |
index |
advisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject
Modifier | Constructor and Description |
---|---|
protected |
FieldInvocation(FieldInfo info,
Interceptor[] interceptors) |
|
FieldInvocation(Field field,
int fieldIndex,
Interceptor[] interceptors) |
protected |
FieldInvocation(Interceptor[] interceptors) |
Modifier and Type | Method and Description |
---|---|
Field |
getField()
This is the field the invocation is accessing
|
int |
getIndex()
This is an index into the Field[] array accessed through the ClassAdvisor
|
Object |
getMetaData(Object group,
Object attr)
This method resolves metadata based on the context of the invocation.
|
Object |
resolveAnnotation(Class<? extends Annotation> annotation)
This method resolves an annotation based on the context of the invocation.
|
<T extends Annotation> |
resolveTypedAnnotation(Class<T> annotation)
Abstraction for resolving an annotation so that
it can be overriden from the Method, Constructor, Field, etc.
|
addResponseAttachment, getAdvisor, getCurrentInterceptor, getInstanceResolver, getInterceptors, getMetaData, getResponseAttachment, getResponseContextInfo, getTargetObject, invokeNext, invokeNext, invokeTarget, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, resolveTypedAnnotation, resolveTypedClassAnnotation, setAdvisor, setInstanceResolver, setMetaData, setResponseContextInfo, setTargetObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy, getWrapper
protected transient Field field
protected int index
public FieldInvocation(Field field, int fieldIndex, Interceptor[] interceptors)
protected FieldInvocation(Interceptor[] interceptors)
protected FieldInvocation(FieldInfo info, Interceptor[] interceptors)
public Object resolveAnnotation(Class<? extends Annotation> annotation)
resolveAnnotation
in interface Invocation
resolveAnnotation
in class InvocationBase
public <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation)
Invocation
resolveTypedAnnotation
in interface Invocation
resolveTypedAnnotation
in class InvocationBase
public Object getMetaData(Object group, Object attr)
getMetaData
in interface Invocation
getMetaData
in class InvocationBase
public Field getField()
public int getIndex()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.