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

Better return type for PluginLoggerRegistrar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Sling Eclipse IDE 1.1.0
    • IDE
    • None

    Description

      The PluginLoggerRegistrar currently returns a ServiceReference<?> since the Tracer is registered for multiple interfaces. This forces clients to downcast the reference themselves.

      Instead, we should return a ServiceReference<Logger>, since none of the clients are interested that the Tracer also implements DebugOptionsListener.

      Attachments

        Activity

          People

            rombert Robert Munteanu
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: