Class ContainerProxyMethodInvocation

  extended by org.jboss.aop.joinpoint.InvocationBase
      extended by org.jboss.aop.joinpoint.MethodInvocation
          extended by org.jboss.aop.proxy.container.ContainerProxyMethodInvocation
All Implemented Interfaces:
Externalizable, Serializable, Invocation

public class ContainerProxyMethodInvocation
extends MethodInvocation

MethodInvocation allowing storage of the generated proxy

$Revision: 44253 $
Kabir Khan
See Also:
Serialized Form

Field Summary
Fields inherited from class org.jboss.aop.joinpoint.MethodInvocation
advisedMethod, arguments, marshalledArguments, methodHash, unadvisedMethod
Fields inherited from class org.jboss.aop.joinpoint.InvocationBase
advisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject
Constructor Summary
ContainerProxyMethodInvocation(MethodInfo info, Interceptor[] interceptors, AspectManaged proxy)
Method Summary
 Object[] getArguments()
          Returns a non-null array containing all method arguments.
 AspectManaged getProxy()
Methods inherited from class org.jboss.aop.joinpoint.MethodInvocation
copy, getActualMethod, getAdvisor, getMetaData, getMethod, getMethodHash, getWrapper, handleErrors, invokeNext, invokeTarget, readExternal, resolveAnnotation, resolveAnnotation, resolveTypedAnnotation, resolveTypedAnnotation, setArguments, toString, writeExternal
Methods inherited from class org.jboss.aop.joinpoint.InvocationBase
addResponseAttachment, getCurrentInterceptor, getInstanceResolver, getInterceptors, getMetaData, getResponseAttachment, getResponseContextInfo, getTargetObject, invokeNext, resolveClassAnnotation, resolveClassMetaData, resolveTypedClassAnnotation, setAdvisor, setInstanceResolver, setMetaData, setResponseContextInfo, setTargetObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public ContainerProxyMethodInvocation(MethodInfo info,
                                      Interceptor[] interceptors,
                                      AspectManaged proxy)
Method Detail


public AspectManaged getProxy()


public Object[] getArguments()
Description copied from class: MethodInvocation
Returns a non-null array containing all method arguments.

The returned array can be changed by the advice or interceptor accordingly. All changes are reflected on joinpoint execution, and are noticed as well by other advices and interceptors that are executed after the current one.
However, changes to this array are limited to the scope of current advice execution, and must be performed before execution of MethodInvocation.invokeNext(), InvocationBase.invokeNext(Interceptor[]), or MethodInvocation.invokeTarget() method. Otherwise, inconsistency on joinpoint argument values may be noticed.

getArguments in class MethodInvocation
the method arguments

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