Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-515

Support OSGi bundles without requiring OSGi dependencies.

    XMLWordPrintableJSON

Details

    • OSGi Support

    Description

      In order to properly support OSGi, we need to use a combination of ideas.

      1. Packages and modules should be as coherent as possible. This makes bundling them into bundles and services significantly easier. Plus, it's a good idea anyway.
      2. Use Felix SCR annotations in order to support more advanced OSGi concepts without requiring an explicit dependency on OSGi. This way, the annotations can be discarded or ignored by non-OSGi environments.
      3. Provide more bundles. The core bundles, while a good start, could be further modularized.
      4. Don't rely on class loader hacks. Instead, methods that need to use a class loader should always include a ClassLoader parameter. Class loader hacks can be used in centralized locations as a fallback mechanism where no advanced class loaders are provided.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mattsicker Matt Sicker
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: