org.aopalliance.intercept.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.
org.springframework.aop.framework.ReflectiveMethodInvocation , org.springframework.aop.support.DelegatingIntroductionInterceptor
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the original proxy objectReturn the proxy that this method invocation was made through. |
| public Object | Returns: the value of the attribute, ornull if not setthe name of the attribute key)Return the value of the specified user attribute. |
| public MethodInvocation | Returns: an invocable clone of this invocation.proceed() can be called once per clone.Create a clone of this object. |
| public MethodInvocation | Returns: an invocable clone of this invocation.proceed() can be called once per clone.the arguments that the cloned invocation is supposed to use,
overriding the original arguments arguments)Create a clone of this object. |
| public void | setArguments(Object...
the argument array arguments)Set the arguments to be used on subsequent invocations in the any advice in this chain. |
| public void | setUserAttribute(String
the name of the attribute key, Object the value of the attribute, or value)null to reset itAdd the specified user attribute with the given value to this invocation. |
| getProxy | back to summary |
|---|---|
| public Object getProxy() Return the proxy that this method invocation was made through.
| |
| getUserAttribute | back to summary |
|---|---|
| public Object getUserAttribute(String key) Return the value of the specified user attribute.
| |
| invocableClone | back to summary |
|---|---|
| public MethodInvocation invocableClone() Create a clone of this object. If cloning is done before
| |
| invocableClone | back to summary |
|---|---|
| public MethodInvocation invocableClone(Object... arguments) Create a clone of this object. If cloning is done before
| |
| setArguments | back to summary |
|---|---|
| public void setArguments(Object... arguments) Set the arguments to be used on subsequent invocations in the any advice in this chain.
| |
| setUserAttribute | back to summary |
|---|---|
| public void setUserAttribute(String key, Object value) Add 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. | |