Technically speaking there really is no portable way to do it now on top of any ClassLoader as getting a list of classes is not part of the standard ClassLoader API (even getting a list of URLs is not). I have to expect that we might likely be looking at a similar situation.
-David