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, setTargetObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, getWrapperprotected 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 InvocationresolveAnnotation in class InvocationBasepublic <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation)
InvocationresolveTypedAnnotation in interface InvocationresolveTypedAnnotation in class InvocationBasepublic Object getMetaData(Object group, Object attr)
getMetaData in interface InvocationgetMetaData in class InvocationBasepublic Field getField()
public int getIndex()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.