Package org.springframework.aop
Interface ProxyMethodInvocation
- All Superinterfaces:
- Invocation,- Joinpoint,- MethodInvocation
- All Known Implementing Classes:
- ReflectiveMethodInvocation
Extension of the AOP Alliance 
MethodInvocation
 interface, allowing access to the proxy that the method invocation was made through.
 Useful to be able to substitute return values with the proxy, if necessary, for example if the invocation target returned itself.
- Since:
- 1.1.3
- Author:
- Juergen Hoeller, Adrian Colyer
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiongetProxy()Return the proxy that this method invocation was made through.getUserAttribute(String key) Return the value of the specified user attribute.Create a clone of this object.invocableClone(Object... arguments) Create a clone of this object.voidsetArguments(Object... arguments) Set the arguments to be used on subsequent invocations in the any advice in this chain.voidsetUserAttribute(String key, Object value) Add the specified user attribute with the given value to this invocation.Methods inherited from interface org.aopalliance.intercept.InvocationgetArgumentsMethods inherited from interface org.aopalliance.intercept.JoinpointgetStaticPart, getThis, proceedMethods inherited from interface org.aopalliance.intercept.MethodInvocationgetMethod
- 
Method Details- 
getProxyObject getProxy()Return the proxy that this method invocation was made through.- Returns:
- the original proxy object
 
- 
invocableCloneMethodInvocation invocableClone()Create a clone of this object. If cloning is done beforeproceed()is invoked on this object,proceed()can be invoked once per clone to invoke the joinpoint (and the rest of the advice chain) more than once.- Returns:
- an invocable clone of this invocation.
 proceed()can be called once per clone.
 
- 
invocableCloneCreate a clone of this object. If cloning is done beforeproceed()is invoked on this object,proceed()can be invoked once per clone to invoke the joinpoint (and the rest of the advice chain) more than once.- Parameters:
- arguments- the arguments that the cloned invocation is supposed to use, overriding the original arguments
- Returns:
- an invocable clone of this invocation.
 proceed()can be called once per clone.
 
- 
setArgumentsSet the arguments to be used on subsequent invocations in the any advice in this chain.- Parameters:
- arguments- the argument array
 
- 
setUserAttributeAdd the specified user attribute with the given value to this invocation.Such attributes are not used within the AOP framework itself. They are just kept as part of the invocation object, for use in special interceptors. - Parameters:
- key- the name of the attribute
- value- the value of the attribute, or- nullto reset it
 
- 
getUserAttributeReturn the value of the specified user attribute.- Parameters:
- key- the name of the attribute
- Returns:
- the value of the attribute, or nullif not set
- See Also:
 
 
-