Package org.bonitasoft.engine.commons
Class JavaMethodInvoker
- java.lang.Object
-
- org.bonitasoft.engine.commons.JavaMethodInvoker
-
public class JavaMethodInvoker extends java.lang.ObjectInvokes a method on a Java Object.- Author:
- Emmanuel Duchastenier, Matthieu Chaffotte
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map<java.lang.String,java.lang.Class<?>>primitiveTypes
-
Constructor Summary
Constructors Constructor Description JavaMethodInvoker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<?>getClassOrPrimitiveClass(java.lang.String type)java.lang.ObjectinvokeJavaMethod(java.lang.String typeOfValueToSet, java.lang.Object valueToSetObjectWith, java.lang.Object objectToInvokeJavaMethodOn, java.lang.String operator, java.lang.String operatorParameterClassName)
-
-
-
Method Detail
-
getClassOrPrimitiveClass
protected java.lang.Class<?> getClassOrPrimitiveClass(java.lang.String type) throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
invokeJavaMethod
public java.lang.Object invokeJavaMethod(java.lang.String typeOfValueToSet, java.lang.Object valueToSetObjectWith, java.lang.Object objectToInvokeJavaMethodOn, java.lang.String operator, java.lang.String operatorParameterClassName) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException- Throws:
java.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.IllegalArgumentExceptionjava.lang.reflect.InvocationTargetException
-
-