On 6/27/12 09:44 , Felix Mayerhuber wrote:
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?
Yes, the weaving hook allows you to add dynamic imports, so just add one
for the package you need.
-> richard
Kind regards,
Felix
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev