Wednesday, July 20, 2011

Two bundles with the same package is not allowed

If you are creating a split package (i.e., a package spanning multiple bundles) then exporting/importing this package from both bundles. This sort of thing is specifically not allowed by OSGi, so this is just an error in your bundles.

If you import a package from another bundle, it will completely shadow an internal package of the same name. See the OSGi spec on class search order. Imports are searched before the bundle class path and they are terminal.

Here is a note on internet


No comments:

Post a Comment