public interface Command
| Modifier and Type | Method and Description |
|---|---|
Object |
invokeMethod(String methodName,
String[] classes,
String[] arguments)
Dispatcher that calls the method on this object by the given name and arguments.
|
default boolean |
isFeatureEnabled(String methodName,
String[] classes) |
static RuntimeException |
methodNotFound(Class<? extends Command> clazz,
String methodName) |
static RuntimeException |
notMatchingMethod(Class<? extends Command> clazz,
String methodName,
String[] classes) |
Object invokeMethod(String methodName, String[] classes, String[] arguments)
methodName - the name of the method to be invoked.classes - array of class names for arguments.arguments - array of arguments serialized as JSON.Object, in case of a service method invocation it will return the DTO serialized to JSON or the instance
in case of a service instance.static RuntimeException methodNotFound(Class<? extends Command> clazz, String methodName)
static RuntimeException notMatchingMethod(Class<? extends Command> clazz, String methodName, String[] classes)
Copyright © 2019 MuleSoft, Inc.. All rights reserved.