public class ControllerMethodInvoker extends Object
Modifier and Type | Method and Description |
---|---|
static ControllerMethodInvoker |
build(Method functionalMethod,
Method implementationMethod,
com.google.inject.Injector injector,
NinjaProperties ninjaProperties)
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, NinjaProperties ninjaProperties)
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 injectorninjaProperties
- The NinjaProperties of this applicationCopyright © 2019 ninjaframework. All rights reserved.