Archive for August, 2010

Dynamic Classes in Java

Recently discovered how to create dynamic classes in Java.

Thread.currentThread().getContextClassLoader().loadClass("DynamicClassPath")

And then if you want to invoke a method on it :)

Object obj = clazz.newInstance();
Method m = clazz.getMethod("methodName", null);

And then to call it:

m.invoke(obj, null);

Comments

Update : Chrome Extension for REA

The one I wrote in my spare time finally got officially released. *insert huge smile*.
Fetch it from here

Comments