oh and actually the way i do it right now is use the current directory to traverse through the package names, and build a
string (using stringbuilder) ... with this order:
x
x.y
x.y.z
x.y.z.u
x.y.z.u.* // this is where i go through the entire directory and then finally use the file name to load the class ... something like:
Thread.currentThread().getContextClassLoader().loadClass("x.y.z.u." + currentFileName);
is this the only way?, it sure is ugly! =( I wish there was a runtime construct in
java for reflecting on packages ...
Regards