Community
Participate
Working Groups
This is related to bug323423. The new org.osgi.framework.wiring package is intended to replace the org.osgi.service.packageadmin package. Much of the internals of PackageAdminImpl will likely need to be restructured to support this.
Shooting for M2 but may have to wait until after depending on the amount of rework that needs to happen in the bundle loader and aackage admin impl.
Created attachment 177965 [details] initial patch This patch supports adapting bundles to BundleWiring and BundleWirings (plural) objects. We still need to support the following methods on BundleWirning: getClassLoader findEntries listResources These three methods will involve adding new API to the framework adaptor SPI. I plan to release this patch to HEAD and continue the work to support these three methods in a separate patch.
The rest of this work will happen in M3.
Created attachment 179776 [details] finished patch This patch finishes the implementation of BundleWiring for the methods: getClassLoader findEntries listResources To implement findEntries and listResources new methods are needed on the adaptor API for BundleClassLoader ClassLoaderDelegate and FrameworkAdaptor. The additional methods on ClassLoaderDelegate and FrameworkAdaptor should not cause any issues since these two interfaces are implemented by the framework and the base adaptor. Any hooks which implement their own BundleClassLoader (instead of just using the DefaultClassLoader implementation will need to implement the new methods.
Patch released.