Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1483

Help generation does not work for commands without noargs constructor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      I changed some commands to use constructor based injection. While I think this
      is more safe as you can ensure the depencies are fully set it creates problems with the help generation.

      The Help generation in the karaf maven plugin needs a noargs constructor to access the default values of fields.

      So I will change the commands back to use property based injection and document that a no args constructor is needed in the Action interface.

        Attachments

          Activity

            People

            • Assignee:
              chris@die-schneider.net Christian Schneider
              Reporter:
              chris@die-schneider.net Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: