org.jboss.aop.joinpoint
Class FieldReadInvocation

java.lang.Object
  extended byorg.jboss.aop.joinpoint.InvocationBase
      extended byorg.jboss.aop.joinpoint.FieldInvocation
          extended byorg.jboss.aop.joinpoint.FieldReadInvocation
All Implemented Interfaces:
Invocation, Serializable
Direct Known Subclasses:
FieldReadInvocationWrapper

public class FieldReadInvocation
extends FieldInvocation

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 method invocation.

Version:
$Revision: 1.12 $
Author:
Bill Burke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.aop.joinpoint.FieldInvocation
field, index
 
Fields inherited from class org.jboss.aop.joinpoint.InvocationBase
advisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject
 
Constructor Summary
  FieldReadInvocation(Field field, int index, Interceptor[] interceptors)
           
protected FieldReadInvocation(Interceptor[] interceptors)
           
 
Method Summary
 Invocation copy()
          Copies complete state of Invocation object.
 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.
 
Methods inherited from class org.jboss.aop.joinpoint.FieldInvocation
getField, getIndex, getMetaData, resolveAnnotation
 
Methods inherited from class org.jboss.aop.joinpoint.InvocationBase
addResponseAttachment, getAdvisor, getInstanceResolver, getInterceptors, getMetaData, getResponseAttachment, getResponseContextInfo, getTargetObject, 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
 

Constructor Detail

FieldReadInvocation

public FieldReadInvocation(Field field,
                           int index,
                           Interceptor[] interceptors)

FieldReadInvocation

protected FieldReadInvocation(Interceptor[] interceptors)
Method Detail

invokeNext

public Object invokeNext()
                  throws Throwable
Invoke on the next interceptor in the chain. If this is already the end of the chain, reflection will call the constructor, field, or method you are invoking on.

Specified by:
invokeNext in interface Invocation
Overrides:
invokeNext in class InvocationBase
Throws:
Throwable

getWrapper

public Invocation getWrapper(Interceptor[] newchain)
Get a wrapper invocation object that can insert a new chain of interceptors at runtime to the invocation flow. CFlow makes use of this. When the wrapper object finishes its invocation chain it delegates back to the wrapped invocation.

Parameters:
newchain -
Returns:

copy

public Invocation copy()
Copies complete state of Invocation object.

Returns:


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.