Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
Adapter 2.1.2
-
None
Description
During initialization of a bundle, it is possible to encounter a race condition in which the BundleTrackerCustomizer::addingBundle(Bundle bundle, BundleEvent event) is triggered after the bundle has begun initialization of a immediate component.
@Component(immediate = true) @Service public class ExampleImpl { @Activate public void activate(ComponentContext context) { Resource resource = .... // Race condition possible here... Could be executed before the BundleTracker (ModelPackageBundleListener) SlingModelExample example = resource.adaptTo(SlingModelExample); } }