Guido Spadotto wrote
>>
> Thanks Todor and Charles for your highly appreciated suggestions.
> I think that Todor spotted the technical issue with quite a remarkable
> conciseness, and you're not out of line.
> 
> 'Captatio benevolentiae' apart ;) I of course am in the case of
> "scattered among several bundle"
> classes, so either I refactor the contents of my bundles or I have to do
> some "Classload acrobatics".
> 
> Another guy claimed he solved this issue [1], but I won't believe until
> I see it running.
> 
If your objects are scattered among several bundles you might want to
give the Apache Sling dynamic classloader a try:

http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/classloader/

It provides the DynamicClassLoaderManager services which gives you a
classloader that is able to load all publically available classes from
all bundles, and the private classes from the bundle getting the
classloader from the service.

Using this classloader we fixed in Sling all these classloader problems
for unmarshalling something with avoid the dynamic import *.

Regards
Carsten
-- 
Carsten Ziegeler
cziege...@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to