Community
Participate
Working Groups
Currently, there is no good way to decide which region a bundle should belong to, so a static approach is taken where the first few bundles installed comprise the kernel region and any installed subsequently comprise the user region. This does not allow bundles to be added to the kernel region after the user region has been created and it does not allow multiple user regions to be implemented. This requires a bundle install hook which will allow a bundle being installed to "inherit" the region of the bundle doing the install. See Equinox bug 333189. Of course, a special purpose API could be used to approximate the required behaviour, but this would be race-prone as BundleContext.installBundle adds the new bundle to the framework's collection of bundles before returning. So the new bundle could be passed to the framework hooks, such as the bundle find hook, before it has been associated with its region.
This was implemented using the bundle event hook.