public class InjectedMethodInvocation extends Object implements org.aopalliance.intercept.MethodInvocation
Key objects from the method's
parameter types and then passing them to an Injector to retrieve the
actual argument.
A BindingAnnotation may optionally be present on an argument type to
refine the Key that is created to look up the parameter's actual value.
| Modifier and Type | Method and Description |
|---|---|
static org.aopalliance.intercept.MethodInvocation |
forMethod(Method method,
Object self,
com.google.inject.Injector injector)
Creates a
MethodInvocation object that is able to invoke the
provided non-static method. |
static org.aopalliance.intercept.MethodInvocation |
forStatic(Method method,
com.google.inject.Injector injector)
Creates a
MethodInvocation object that is able to invoke the
provided static method. |
Object[] |
getArguments() |
Method |
getMethod() |
AccessibleObject |
getStaticPart() |
Object |
getThis() |
Object |
proceed() |
public static org.aopalliance.intercept.MethodInvocation forStatic(Method method, com.google.inject.Injector injector)
MethodInvocation object that is able to invoke the
provided static method. The actual parameters for the invocation will be
looked up using the given injector.
You can call Joinpoint.proceed() to invoke the method.
method - A static method.injector - The injector which is queried for actual method
arguments.public static org.aopalliance.intercept.MethodInvocation forMethod(Method method, Object self, com.google.inject.Injector injector)
MethodInvocation object that is able to invoke the
provided non-static method. The actual parameters for the invocation will
be looked up using the given injector.
You can call Joinpoint.proceed() to invoke the method.
method - A non-static method.self - The object on which the method will be called.injector - The injector which is queried for actual method
arguments.public Object[] getArguments()
getArguments in interface org.aopalliance.intercept.Invocationpublic Object proceed() throws Throwable
proceed in interface org.aopalliance.intercept.JoinpointThrowablepublic Object getThis()
getThis in interface org.aopalliance.intercept.Joinpointpublic AccessibleObject getStaticPart()
getStaticPart in interface org.aopalliance.intercept.Joinpointpublic Method getMethod()
getMethod in interface org.aopalliance.intercept.MethodInvocationCopyright © 2014–2016. All rights reserved.