public class ControllerMethodInvoker extends Object
Modifier and Type | Method and Description |
---|---|
static ControllerMethodInvoker |
build(Method functionalMethod,
Method implementationMethod,
com.google.inject.Injector injector)
Builds an invoker for a functional method.
|
Object |
invoke(Object controller,
Context context) |
public static ControllerMethodInvoker build(Method functionalMethod, Method implementationMethod, com.google.inject.Injector injector)
functionalMethod
- The method to be invokedimplementationMethod
- The method to use for determining what
actual parameters and annotations to use for each argument. Useful
when type/lambda erasure makes the functional interface not reliable
for reflecting.injector
- The guice injectorCopyright © 2017 ninjaframework. All rights reserved.