It means that to load a class dynamically, the first attempt should be:
Class clazz = Thread.currentThread().getContextClassLoader().loadClass(aClassName);
If it fails, one should try the standard classloader via the standard call:
Class clazz = Class.forName(aClassName)


BTW, it should be great to implement such an helper class.

o.a.g.c.Classes.loadClass() already does this, though not sure if it is still there with the recent move of stuff...


--jason



Reply via email to