Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-108

Add dynamic ServiceLoader support for OSGi environments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • Core
    • None

    Description

      Johnzon 1.0.0 together with org.apache.geronimo.specs:geronimo-json_1.0_spec:1.0-alpha-1 currently does not work within OSGi envrionments - the service loader does not found the implementation class (see GERONIMO-6560).

      the OSGi spec compliant way for supporting ServiceLoaders is described in the OSGi Enterprise Specification (from version 5) chapter 133. Aries SPI Fly is the reference implementation which also contains a good summary of the steps to make a bundle compatible.

      concerning johnzon-core (provider bundle) we only need to add two bundle headers Require-Capability and Provide-Capability for the SPI javax.json.spi.JsonProvider.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h