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

Add system property resolution to CommandSessionImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • gogo.runtime-0.10.0
    • gogo.runtime-0.12.0
    • Gogo Runtime
    • None

    Description

      Currently we wrap the CommandProcessor and CommandShell in karaf to simply add the resolution of system properties.

      See org.apache.karaf.shell.console.impl.jline.Activator in the karaf console module.

      In the innermost code it is only the following we override in CommandSessionImpl.
      public Object get(String name) {
      Object val = super.get(name);
      if (val == null)

      { val = System.getProperty(name); }

      return val;
      }

      So I propose to add this system property resolution to gogo. This would allow us to remove all the wrapping code in karaf.

      If you are interested I can provide a patch.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: