org.jboss.aop.joinpoint
Class FieldInvocation
java.lang.Object
org.jboss.aop.joinpoint.InvocationBase
org.jboss.aop.joinpoint.FieldInvocation
- All Implemented Interfaces:
- Invocation, Serializable
- Direct Known Subclasses:
- FieldReadInvocation, FieldWriteInvocation
- public abstract class FieldInvocation
- extends InvocationBase
This is a helper wrapper class for an Invocation object.
It is used to add or get values or metadata that pertains to
an AOP field access or field update.
- Version:
- $Revision: 1.18 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
Method Summary |
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 annotation)
This method resolves an annotation based on the context of the invocation. |
Methods inherited from class org.jboss.aop.joinpoint.InvocationBase |
addResponseAttachment, getAdvisor, getCurrentInterceptor, getInstanceResolver, getInterceptors, getMetaData, getResponseAttachment, getResponseContextInfo, getTargetObject, invokeNext, invokeNext, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, setAdvisor, setInstanceResolver, setMetaData, setResponseContextInfo, setTargetObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
field
protected transient Field field
index
protected int index
FieldInvocation
public FieldInvocation(Field field,
int fieldIndex,
Interceptor[] interceptors)
FieldInvocation
protected FieldInvocation(Interceptor[] interceptors)
FieldInvocation
protected FieldInvocation(FieldInfo info,
Interceptor[] interceptors)
resolveAnnotation
public Object resolveAnnotation(Class annotation)
- This method resolves an annotation based on the context of the invocation.
- Specified by:
resolveAnnotation
in interface Invocation
- Overrides:
resolveAnnotation
in class InvocationBase
getMetaData
public Object getMetaData(Object group,
Object attr)
- This method resolves metadata based on the context of the invocation.
It iterates through its list of MetaDataResolvers to find out the
value of the metadata desired.
This list usually is ThreadMetaData, InstanceAdvisor.getMetaData
ClassAdvisor.getMethodMetaData (or field, or constructor)
ClassAdvisor.getDefaultMetaData
- Specified by:
getMetaData
in interface Invocation
- Overrides:
getMetaData
in class InvocationBase
getField
public Field getField()
- This is the field the invocation is accessing
- Returns:
getIndex
public int getIndex()
- This is an index into the Field[] array accessed through the ClassAdvisor
- Returns:
Copyright © 2004 JBoss Inc. All Rights Reserved.