public class ExternalInterface extends Object
| Constructor and Description |
|---|
ExternalInterface() |
| Modifier and Type | Method and Description |
|---|---|
static Object[] |
convertObjectToMethodType(Class<?>[] paramTypes,
Object[] parameterValues)
casts objects to object type
|
static Object |
convertToDataType(Class<?> type,
Object value)
converts data to their matching types
|
static Object |
evaluateTestMethod(ServiceObject serviceObject)
set method to call within module.services.method package
|
static Object |
ExternalInterfaceRunner(ServiceObject serviceObject)
interface for restful API calls
|
static File |
getExternalMethodFilePath(String classmethod)
gets File from root directory root directory: where pom file is located if
classname matches the class in method directory, then the class is returned
|
static Class<?>[] |
getMethodParameterTypes(Class<?> external,
String methodName,
Object[] parameterList)
gets the list of parameter types for a method in an external class
|
static boolean |
isParameterNamesMatch(String[] parameterNames,
Object[] parameterList)
verify if parameter names match the ones in the method
|
static Object |
runExernalMethod(String classmethod,
List<KeyValue> parameterList)
run method from directory: src/main/java/module/services/method the class and
method name are passed through options column: class.method
|
public static Object ExternalInterfaceRunner(ServiceObject serviceObject)
serviceObject - Exceptionpublic static Object evaluateTestMethod(ServiceObject serviceObject) throws Exception
serviceObject - SecurityExceptionNoSuchMethodExceptionExceptionpublic static Object runExernalMethod(String classmethod, List<KeyValue> parameterList) throws Exception
classmethod - Exceptionpublic static Object[] convertObjectToMethodType(Class<?>[] paramTypes, Object[] parameterValues)
paramTypes - parameterValues - public static Object convertToDataType(Class<?> type, Object value)
type - value - public static boolean isParameterNamesMatch(String[] parameterNames, Object[] parameterList)
external - methodName - parameterList - public static Class<?>[] getMethodParameterTypes(Class<?> external, String methodName, Object[] parameterList)
external - methodName - Copyright © 2020. All rights reserved.