org.jboss.aop.joinpoint
Class FieldWriteInvocation
java.lang.Object
org.jboss.aop.joinpoint.InvocationBase
org.jboss.aop.joinpoint.FieldInvocation
org.jboss.aop.joinpoint.FieldWriteInvocation
- All Implemented Interfaces:
- Invocation, Serializable
- 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: 1.16 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
Methods inherited from class org.jboss.aop.joinpoint.InvocationBase |
addResponseAttachment, getAdvisor, getCurrentInterceptor, 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 |
value
protected Object value
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)
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:
getValue
public Object getValue()
setValue
public void setValue(Object value)
Copyright © 2004 JBoss Inc. All Rights Reserved.