You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2012/05/16 10:15:02 UTC

[jira] [Created] (KARAF-1483) Help generation does not work for commands without noargs constructor

Christian Schneider created KARAF-1483:
------------------------------------------

             Summary: Help generation does not work for commands without noargs constructor
                 Key: KARAF-1483
                 URL: https://issues.apache.org/jira/browse/KARAF-1483
             Project: Karaf
          Issue Type: Bug
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: 3.0.0


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (KARAF-1483) Help generation does not work for commands without noargs constructor

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schneider resolved KARAF-1483.
----------------------------------------

    Resolution: Fixed
    
> Help generation does not work for commands without noargs constructor
> ---------------------------------------------------------------------
>
>                 Key: KARAF-1483
>                 URL: https://issues.apache.org/jira/browse/KARAF-1483
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira