Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Dynamic ClassLoader in plugins
Dynamic ClassLoader in plugins [message #250421] Tue, 08 June 2004 07:41 Go to next message
Eclipse UserFriend
Originally posted by: yves.magnific.ch

Hello,
we (2 Students, new to plugin development), are trying to
implement a jmx plugin. Since our plugins should be vendor
independent we have to load several classes form jar files.
We don't know the location of the jar files in advance. But we
need to use the classes in them directly in our plugin.

for example:
jbossjmx.jar contains the class ObjectName. We should be able to
make a new instance without going over
oururlclassloader.loadClass("javax.management.ObjectName")
but doing things link
ObjectName o = new ObjectName(..);


Is this possible to do at all? How?

thank you very much

yves
Re: Dynamic ClassLoader in plugins [message #250448 is a reply to message #250421] Tue, 08 June 2004 08:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

Yves Kurz wrote:
> we (2 Students, new to plugin development), are trying to
> implement a jmx plugin. Since our plugins should be vendor
> independent we have to load several classes form jar files.
> We don't know the location of the jar files in advance. But we
> need to use the classes in them directly in our plugin.
>
> for example:
> jbossjmx.jar contains the class ObjectName. We should be able to
> make a new instance without going over
> oururlclassloader.loadClass("javax.management.ObjectName")
> but doing things link
> ObjectName o = new ObjectName(..);
>
>
> Is this possible to do at all? How?

You (2 Students, new to plugin development) have at least two choices:

1. Of course this is possible. I do not know how. :)

2. Use http://openl.org (and http://openrules.com :))

--
Sam Mesh - http://openrules.com
Re: Dynamic ClassLoader in plugins [message #250461 is a reply to message #250448] Tue, 08 June 2004 09:20 Go to previous message
Eclipse UserFriend
Originally posted by: yves.magnific.ch

Hello..

>> Is this possible to do at all? How?
>
> You (2 Students, new to plugin development) have at least two choices:
>
> 1. Of course this is possible. I do not know how. :)
>
> 2. Use http://openl.org (and http://openrules.com :))

Thank you.. but actually i asked my question to fast. As it
seams there is a solution using dynamic bundles. Maybe i should
lock harder next time but after many hours trying without success
I could not resist to ask my question here.

yves
Previous Topic:[Outline] Good starting point - docs, examples
Next Topic:What's wrong with my Markers (or why do markers suck)?
Goto Forum:
  


Current Time: Fri Jul 18 09:55:57 EDT 2025

Powered by FUDForum. Page generated in 0.03149 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top