org.jboss.aop.joinpoint
Class FieldWriteInvocation

java.lang.Object
  extended by org.jboss.aop.joinpoint.InvocationBase
      extended by org.jboss.aop.joinpoint.FieldInvocation
          extended by org.jboss.aop.joinpoint.FieldWriteInvocation
All Implemented Interfaces:
Serializable, Invocation
Direct Known Subclasses:
FieldWriteInvocationWrapper

public class FieldWriteInvocation
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: 46058 $
Author:
Bill Burke
See Also:
Serialized Form

Field Summary
protected  Object value
           
 
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
protected FieldWriteInvocation(FieldInfo info, Interceptor[] interceptors)
           
protected FieldWriteInvocation(FieldInfo info, Object value, Interceptor[] interceptors)
           
  FieldWriteInvocation(Field field, int index, Object value, Interceptor[] interceptors)
           
protected FieldWriteInvocation(Interceptor[] interceptors)
           
 
Method Summary
 Invocation copy()
          Copies complete state of Invocation object.
 Object getValue()
           
 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.
 Object invokeTarget()
          Invokes the target joinpoint for this invocation skipping any subsequent interceptors in the chain.
 void setValue(Object value)
           
 
Methods inherited from class org.jboss.aop.joinpoint.FieldInvocation
getField, getIndex, getMetaData, resolveAnnotation, resolveTypedAnnotation
 
Methods inherited from class org.jboss.aop.joinpoint.InvocationBase
addResponseAttachment, getAdvisor, getCurrentInterceptor, getInstanceResolver, getInterceptors, getMetaData, getResponseAttachment, getResponseContextInfo, getTargetObject, invokeNext, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, resolveTypedAnnotation, resolveTypedClassAnnotation, setAdvisor, setInstanceResolver, setMetaData, setResponseContextInfo, setTargetObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected Object value
Constructor Detail

FieldWriteInvocation

public FieldWriteInvocation(Field field,
                            int index,
                            Object value,
                            Interceptor[] interceptors)

FieldWriteInvocation

protected FieldWriteInvocation(Interceptor[] interceptors)

FieldWriteInvocation

protected FieldWriteInvocation(FieldInfo info,
                               Interceptor[] interceptors)

FieldWriteInvocation

protected FieldWriteInvocation(FieldInfo info,
                               Object value,
                               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

invokeTarget

public Object invokeTarget()
                    throws Throwable
Invokes the target joinpoint for this invocation skipping any subsequent interceptors in the chain.

Specified by:
invokeTarget in interface Invocation
Overrides:
invokeTarget 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:

getValue

public Object getValue()

setValue

public void setValue(Object value)


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.