public class InjectedMethodInvocation extends Object
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 InjectedMethodInvocation |
forMethod(Method method,
Object self,
com.google.inject.Injector injector)
Creates a InjectedMethodInvocation object that is able to invoke the
provided method.
|
static InjectedMethodInvocation |
forStatic(Method method,
com.google.inject.Injector injector)
Creates an InjectedMethodInvocation object that is able to invoke the
provided static method.
|
Object |
proceed()
Actually executes the method.
|
public static InjectedMethodInvocation forStatic(Method method, com.google.inject.Injector injector)
You can call proceed() to invoke the method.
method - A static method.injector - The injector which is queried for actual method arguments.public static InjectedMethodInvocation forMethod(Method method, Object self, com.google.inject.Injector injector)
You can call proceed() to invoke the method.
method - A method.self - The object on which the method will be called. May be null for invoking
static methods.injector - The injector which is queried for actual method arguments.Copyright © 2014–2018. All rights reserved.