posted 12 years ago
I need to dynamically load all classes of a known interface, into a class at runtime. The classes will be required to be in the same package as the loading class. However, functionality should not be dependent on whether this class is in a class directory tree or a jar file. I guess the question is, is there anyway to get all Class objects of a certain Package, without trying to read the directory / jar file?