Slide 47
Slide 47 text
val clazz = targetClassLoader.loadClass(declaringType)
val instance = clazz.newInstance()
val method = clazz.getDeclaredMethod(methodName,
String::class.java,
Boolean::class.java)
val result = method.invoke(instance,
"arg1",
true)