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

Improve support for embedding the Sling Launcher in Java applications

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Launchpad Base 2.3.0
    • Launchpad Base 2.4.0
    • Launchpad
    • None

    Description

      The only way to embed the Sling launcher today is to build an array of command line options and call the static Main.main(String[] args) method from the application. This is kind of weird and only allows a small subset of configuration properties to be easily supplied by the calling application.

      In addition the handling of command line options is currently split between the Main and the MainDelagate class: The Main class implements the usage functionality (for the -h command line option) while the MainDelegate class implements the actual conversion of command line options to internal configuration property. This should be improved in that the support for real command lines should be consolidated in the Main class and the map of configuration properties supplied to the MainDelagate class should only contain actual configuration properties.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: