Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2649

Support for configuration printers without requiring them to implement the interface

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: webconsole-3.1.2
    • Fix Version/s: webconsole-3.1.6
    • Component/s: Web Console
    • Labels:
      None

      Description

      Currently if one wants to develop a configuration printer, the developed component has to import/implement the configuration printer interface. This ties the bundle to the web console bundle - which makes it more complicated to implement such extensions than it should be.
      For plugins we already have the dynamic registration without requiring to implement a web console specific interface by searching for servlet services with specific properties.

      We could implement something similar for configuration printers:
      We search for all services having at least these properties:

      • felix.webconsole.label
      • felix.webconsole.title
      • felix.webconsole.configprinter.modes

      If any service has these three properties and has a method printConfiguration(PrintWriter) or printConfiguration(PrintWriter, String (=mode)), this service is added as a configuration printer. This method is searched by reflection.

        Attachments

          Activity

            People

            • Assignee:
              cziegeler Carsten Ziegeler
              Reporter:
              cziegeler Carsten Ziegeler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: