Package core.helpers
Class ExternalClassHelper
java.lang.Object
core.helpers.ExternalClassHelper
- Author:
- ehsan matean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Object[]getParameterNames(List<KeyValue> parameters) protected static booleanisParameterNamesMatch(Object[] parameterNames, Object[] parameterList) verify if parameter names match the ones in the methodprotected static booleanisParameterNamesProvided(List<KeyValue> paramters) parameters should either be all format: parameterName:value or just valuestatic ObjectrunInternalClass(String sourcePath, String methodName, List<KeyValue> parameterList)
-
Constructor Details
-
ExternalClassHelper
public ExternalClassHelper()
-
-
Method Details
-
runInternalClass
public static Object runInternalClass(String sourcePath, String methodName, List<KeyValue> parameterList) throws Exception - Throws:
Exception
-
getParameterNames
-
isParameterNamesProvided
parameters should either be all format: parameterName:value or just value- Parameters:
paramters-- Returns:
-
isParameterNamesMatch
verify if parameter names match the ones in the method- Parameters:
parameterList-external-methodName-
-