|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProxyMethodInvocation
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.
ReflectiveMethodInvocation
,
DelegatingIntroductionInterceptor
Method Summary | |
---|---|
Object |
getProxy()
Return the proxy that this method invocation was made through. |
Object |
getUserAttribute(String key)
Return the value of the specified user attribute. |
MethodInvocation |
invocableClone()
Create a clone of this object. |
MethodInvocation |
invocableClone(Object[] arguments)
Create a clone of this object. |
void |
setUserAttribute(String key,
Object value)
Add the specified user attribute with the given value to this invocation. |
Methods inherited from interface org.aopalliance.intercept.MethodInvocation |
---|
getMethod |
Methods inherited from interface org.aopalliance.intercept.Invocation |
---|
getArguments |
Methods inherited from interface org.aopalliance.intercept.Joinpoint |
---|
getStaticPart, getThis, proceed |
Method Detail |
---|
Object getProxy()
MethodInvocation invocableClone()
proceed()
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.
proceed()
can be called once per clone.MethodInvocation invocableClone(Object[] arguments)
proceed()
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.
arguments
- the arguments that the cloned invocation is supposed to use,
overriding the original arguments
proceed()
can be called once per clone.void setUserAttribute(String key, Object value)
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.
key
- the name of the attributevalue
- the value of the attribute, or null
to reset itObject getUserAttribute(String key)
key
- the name of the attribute
null
if not setsetUserAttribute(java.lang.String, java.lang.Object)
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |