public class MethodRouter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MethodRouter.Builder |
static class |
MethodRouter.DumbBuilder |
| Constructor and Description |
|---|
MethodRouter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
forward(Object[] inputs,
Object adaptedInstance)
Forward a method invocation from the exposed interface to the adapted instance, converting the arguments
consumed by the adapted instance as specified and converting the result produced by it as specified.
|
public Object forward(Object[] inputs, Object adaptedInstance) throws AdapterException, InvocationTargetException, IllegalAccessException
inputs - The arguments passed to the exposed interface by the caller, to be converted into
a set of arguments accepted by the adapted instance.adaptedInstance - The adapted instance itself.AdapterException - wraps throwables generated during conversionInvocationTargetException - native java.reflection exceptionIllegalAccessException - native java.reflection exceptionCopyright © 2020 shadow-invoke. All rights reserved.