|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.aop.framework.ReflectiveMethodInvocation
Spring implementation of AOP Alliance MethodInvocation interface.
Invokes the target object using reflection. Subclasses can override the invokeJoinpoint() method to change this behavior, so this is also a useful base class for more specialized MethodInvocation implementations.
It's possible to clone an invocation, to invoke proceed() repeatedly (once per clone), using the invocableClone() method.
invokeJoinpoint()
,
invocableClone()
Field Summary | |
protected java.lang.Object[] |
arguments
|
protected java.util.List |
interceptorsAndDynamicMethodMatchers
List of MethodInterceptor and InterceptorAndDynamicMethodMatcher that need dynamic checks. |
protected java.lang.reflect.Method |
method
|
protected java.lang.Object |
proxy
|
protected java.lang.Object |
target
|
Constructor Summary | |
ReflectiveMethodInvocation(java.lang.Object proxy,
java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
java.lang.Class targetClass,
java.util.List interceptorsAndDynamicMethodMatchers)
Construct a new MethodInvocation with given arguments |
Method Summary | |
java.lang.Object[] |
getArguments()
|
java.lang.reflect.Method |
getMethod()
Return the method invoked on the proxied interface. |
java.lang.Object |
getProxy()
Return the proxy that this interception was made through. |
java.lang.reflect.AccessibleObject |
getStaticPart()
|
java.lang.Object |
getThis()
|
org.aopalliance.intercept.MethodInvocation |
invocableClone()
Create a clone of this object. |
protected java.lang.Object |
invokeJoinpoint()
Invoke the joinpoint using reflection. |
java.lang.Object |
proceed()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object proxy
protected java.lang.Object target
protected java.lang.reflect.Method method
protected java.lang.Object[] arguments
protected java.util.List interceptorsAndDynamicMethodMatchers
Constructor Detail |
public ReflectiveMethodInvocation(java.lang.Object proxy, java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] arguments, java.lang.Class targetClass, java.util.List interceptorsAndDynamicMethodMatchers)
interceptorsAndDynamicMethodMatchers
- interceptors that should be applied,
along with any InterceptorAndDynamicMethodMatchers that need evaluation at runtime.
MethodMatchers included in this struct must already have been found to have matched as far
as was possibly statically. Passing an array might be about 10% faster, but would complicate
the code. And it would work only for static pointcuts.Method Detail |
public final java.lang.Object getProxy()
public final java.lang.Object getThis()
getThis
in interface org.aopalliance.intercept.Joinpoint
public final java.lang.reflect.AccessibleObject getStaticPart()
getStaticPart
in interface org.aopalliance.intercept.Joinpoint
public final java.lang.reflect.Method getMethod()
getMethod
in interface org.aopalliance.intercept.MethodInvocation
public final java.lang.Object[] getArguments()
getArguments
in interface org.aopalliance.intercept.Invocation
public java.lang.Object proceed() throws java.lang.Throwable
proceed
in interface org.aopalliance.intercept.Joinpoint
java.lang.Throwable
protected java.lang.Object invokeJoinpoint() throws java.lang.Throwable
java.lang.Throwable
- if invoking the joinpoint resulted in an exceptionpublic org.aopalliance.intercept.MethodInvocation invocableClone()
Object.clone()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |