See
http://www.osgi.org/javadoc/r5/core/org/osgi/framework/hooks/weaving/WovenClass.html#getDynamicImports
()

You can add an dynamic import specification to the list returned by that
method.

Tom




                                                                       
  From:       Felix Mayerhuber <[email protected]>            
                                                                       
  To:         [email protected],                                  
                                                                       
  Date:       06/27/2012 08:57 AM                                      
                                                                       
  Subject:    [osgi-dev] Weaving Hook question                         
                                                                       





Hi @all,

I've got a question concering the Weaving Hook class modification
possibility. I use a Weaving Hook to enhance some classes which have a
specific annotation. I add an interface to the classes and add the
implementations for the methods for this interface. Since this interface
isn't in the import-package definition in the first place, my bundle is
then unable to load the classes since the interface isn't imported. If I
add the package of the interface to the import-package definition, it
works fine. Is there any way to modify the import-package of the bundle
inside a weaving hook?

Kind regards,
Felix
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev


<<inline: graycol.gif>>

<<inline: ecblank.gif>>

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to