| java.lang.Object org.springframework.aop.framework.ReflectiveMethodInvocation
Constructor Summary | |
public | ReflectiveMethodInvocation(Object proxy, Object target, Method method, Object[] arguments, Class targetClass, List interceptorsAndDynamicMethodMatchers) Construct a new ReflectiveMethodInvocation with the given arguments.
Parameters: proxy - the proxy object that the invocation was made on Parameters: target - the target object to invoke Parameters: method - the method to invoke Parameters: arguments - the arguments to invoke the method with Parameters: targetClass - the target class, for MethodMatcher invocations Parameters: 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 matchedas far as was possibly statically. |
interceptorsAndDynamicMethodMatchers | final protected List interceptorsAndDynamicMethodMatchers(Code) | | List of MethodInterceptor and InterceptorAndDynamicMethodMatcher
that need dynamic checks.
|
ReflectiveMethodInvocation | public ReflectiveMethodInvocation(Object proxy, Object target, Method method, Object[] arguments, Class targetClass, List interceptorsAndDynamicMethodMatchers)(Code) | | Construct a new ReflectiveMethodInvocation with the given arguments.
Parameters: proxy - the proxy object that the invocation was made on Parameters: target - the target object to invoke Parameters: method - the method to invoke Parameters: arguments - the arguments to invoke the method with Parameters: targetClass - the target class, for MethodMatcher invocations Parameters: 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 matchedas 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. |
getMethod | final public Method getMethod()(Code) | | Return the method invoked on the proxied interface.
May or may not correspond with a method invoked on an underlying
implementation of that interface.
|
getUserAttributes | public Map getUserAttributes()(Code) | | Return user attributes associated with this invocation.
This method provides an invocation-bound alternative to a ThreadLocal.
This map is initialized lazily and is not used in the AOP framework itself.
any user attributes associated with this invocation(never null ) |
invocableClone | public MethodInvocation invocableClone()(Code) | | This implementation returns a shallow copy of this invocation object,
including an independent copy of the original arguments array.
We want a shallow copy in this case: We want to use the same interceptor
chain and other object references, but we want an independent value for the
current interceptor index.
See Also: java.lang.Object.clone |
invocableClone | public MethodInvocation invocableClone(Object[] arguments)(Code) | | This implementation returns a shallow copy of this invocation object,
using the given arguments array for the clone.
We want a shallow copy in this case: We want to use the same interceptor
chain and other object references, but we want an independent value for the
current interceptor index.
See Also: java.lang.Object.clone |
invokeJoinpoint | protected Object invokeJoinpoint() throws Throwable(Code) | | Invoke the joinpoint using reflection.
Subclasses can override this to use custom invocation.
the return value of the joinpoint throws: Throwable - if invoking the joinpoint resulted in an exception |
setArguments | public void setArguments(Object[] arguments)(Code) | | |
|
|