For a ClassLoader you would need need a simple subclass based on the
parent Constructor. So something like...
MyClassLoader mcl = new MyClassLoader(getClass().getClassLoader());
MyClassLoader would have to somehow make accessible the parent
ClassLoader's protected access definePackage* method. (Just make it
public?). So for that, something like...
public definePackage(...) { getParent().definePackage(...); }
You could then run the Manifest entries and add the package related
information to the current ClassLoader via your MyClassLoader
instance and you then have it available from every class already
using that ClassLoader - and you're done**, you don't even need to
keep the ClassLoader around.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden