|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.framework.ReflectiveMethodInvocation
Spring implementation of AOP Alliance MethodInvocation interface. Invokes target using reflection. Subclasses can override the invokeJoinpoint() method to change this behaviour, so this is a useful base class for MethodInvocation implementations.
Field Summary | |
protected java.lang.Object[] |
arguments
|
protected java.util.List |
interceptorsAndDynamicMethodMatchers
List of Methodnterceptor 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 m,
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()
Private optimization method |
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()
|
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.reflect.Method method
protected java.lang.Object[] arguments
protected java.lang.Object target
protected java.lang.Object proxy
protected java.util.List interceptorsAndDynamicMethodMatchers
Constructor Detail |
public ReflectiveMethodInvocation(java.lang.Object proxy, java.lang.Object target, java.lang.reflect.Method m, 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.reflect.Method getMethod()
getMethod
in interface org.aopalliance.intercept.MethodInvocation
public final java.lang.reflect.AccessibleObject getStaticPart()
getStaticPart
in interface org.aopalliance.intercept.Joinpoint
public final java.lang.Object getProxy()
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
Joinpoint.proceed()
protected java.lang.Object invokeJoinpoint() throws java.lang.Throwable
java.lang.Throwable
- if invoking the joinpoint resulted in an exceptionpublic final java.lang.Object getThis()
getThis
in interface org.aopalliance.intercept.Joinpoint
Joinpoint.getThis()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |