Custom Bundle Class Loader [message #48700] |
Thu, 30 June 2005 19:40 |
Eclipse User |
|
|
|
Originally posted by: schulz78.gmx.net
Hi,
having eclipse plugins deployed as jars is a great idea. However my
pre-3.1 plugin layout is broken by the fact that third party libraries
(in <plugin>/lib) are not found anymore, since jars in jars cannot be
used by the standard Jar-enabled classloader. I think any other solution
(e.g. locating jars in a separate plugin that is not jar'ed or having
plugins not being jar'ed at all) is less appropriate.
What I want to do is wrap a custom class loader around the OSGI
framework class loader or deploy a proxy that intercepts calls to
Bundle.loadClass and delegates to that special class loader, which
checks if a <plugin>/lib folder exists and iff tries to load the class
from any jar found within that folder.
Is there any chance to implement this (either as a parental class loader
or as a delgating proxy object)?
Any comments would be appreciated.
Regards,
Sven Schulz
|
|
|
Powered by
FUDForum. Page generated in 0.03227 seconds