Re: [Ikvm-developers] Dynamic loading woes (again)
Brought to you by:
jfrijters
|
From: Michael K. <mi...@sa...> - 2007-02-10 08:58:06
|
Thanks. A supplementary question: how can I get hold of a ClassLoader that searches the Java ClassPath? Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: ikv...@li... > [mailto:ikv...@li...] On > Behalf Of Jeroen Frijters > Sent: 10 February 2007 06:08 > To: Michael Kay; ikv...@li... > Subject: Re: [Ikvm-developers] Dynamic loading woes (again) > > Michael Kay wrote: > > Is there any way to discover and use the ClassLoader > associated with > > an assembly? > > Only indirectly. If you have a Type from the assembly you can use: > > ikvm.runtime.Util.getFriendlyClassFromType(type).getClassLoader() > > You can use the resulting ClassLoader to load types and > resources from the assembly (and the assemblies it > references). You can check what assembly a ClassLoader is > associated with by calling toString on it, that will return > the assembly name. > > Regards, > Jeroen > > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web > services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& dat=121642 > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers |