Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7612

Use Declarative Services to register optional components

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Commons Mime 2.1.10
    • Fix Version/s: Commons Mime 2.2.0
    • Component/s: Commons
    • Labels:
      None

      Description

      Currently the TikaMimeTypeProvider as well as the MimeTypeWebConsolePlugin are registered programmatically. I guess this is done make sure they work with the optional package dependencies.

      I recently learned that DS is very good to handle this case. So I propose to do both with simple DS component annotations.
      See: https://github.com/apache/sling-org-apache-sling-commons-mime/pull/2

       

       

        Attachments

          Activity

            People

            • Assignee:
              bdelacretaz Bertrand Delacretaz
              Reporter:
              cschneider Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: