Month: July 2010

Invoking a Java Method by Name using Reflection

This is an example:

Class<?> c = Class.forName("class name");
Method  method = c.getDeclaredMethod ("method name", parameterTypes);
method.invoke (objectToInvokeOn, params);

Just It
Bye

Advertisements