How to load class with its bundle's classloader ? [message #100073] |
Fri, 19 October 2007 10:38 |
Eclipse User |
|
|
|
Originally posted by: sf.tragwerk-dresden.de
Hi,
please imagine the following situation:
Plugin A
^
Plugin C |
^ |
| |
| |
| |
Plugin B
1. Plugin B depends on A and C where A knows nothing about C.
2. Plugin B contributes a Classname via an extension point to A.
3. This class is located inside Plugin C.
How can I load this class from Plugin A with its own BundleClassLoader (
C ) ?
I only know that Bundle B must know about the class.
Sebastian
|
|
|
|
Re: How to load class with its bundle's classloader ? [message #100102 is a reply to message #100088] |
Fri, 19 October 2007 13:59 |
Eclipse User |
|
|
|
Originally posted by: sf.tragwerk-dresden.de
Hi Danial,
you are right.
Calling
bundleB.loadClass(hidden.in.bundle_c.ClassName);
from A works.
Don't know what went wrong the last time.
Thank you.
Sebastian
Danail Nachev schrieb:
> Hi,
>
> It should be enough to just import the package where the class resides
> from Plugin C.
>
> Sebastian Fuchs wrote:
>> Hi,
>>
>> please imagine the following situation:
>>
>>
>> Plugin A
>> ^
>> Plugin C |
>> ^ |
>> | |
>> | |
>> | |
>> Plugin B
>>
>>
>> 1. Plugin B depends on A and C where A knows nothing about C.
>> 2. Plugin B contributes a Classname via an extension point to A.
>> 3. This class is located inside Plugin C.
>>
>> How can I load this class from Plugin A with its own BundleClassLoader (
>> C ) ?
>> I only know that Bundle B must know about the class.
>>
>> Sebastian
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03411 seconds