Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-957

SPIFly: Service Providers ignored if bundle is not active

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0
    • None
    • None
    • None
    • o.a.a.spifly.dynamic.bundle - 1.0.0-SNAPSHOT
      Eclipse 4.2

    Description

      Bundles which provide services (through SPI-Provides or Provide-Capability) are not processed unless the bundle is activated, requiring explicity activation rather than lazy activation.

      The providerBundleTracker in BaseActivator should track Installed, Resolved, Starting and Active bundles (same as the consumerBundleTracker).

      With the ProviderBundleTrackerCustomizer as it current works, calls to bundle.getBundleContext() may result in a null pointer if the bundle is not active.

      With Eclipse, a bundle with the Bundle-ActivationPolicy: lazy will become actived while processing the services (e.g. on bundle.loadClass()), resulting in a valid bundleContext. Bundles without this header will return null.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kpmilburn Kevin Milburn
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: