karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4519) If an action does not have a @Command annotation, fallback to calling a description() method via reflection to get an Action's description
Date Fri, 24 Jun 2016 05:01:16 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15347709#comment-15347709
] 

ASF subversion and git services commented on KARAF-4519:
--------------------------------------------------------

Commit 3bce0b45772fa2cc7d3d6fe3439138bb00f67eef in karaf's branch refs/heads/master from [~lb]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=3bce0b4 ]

[KARAF-4519] If an action does not have a @Command annotation, fallback to calling a description()
method via reflection to get an Action's description


> If an action does not have a @Command annotation, fallback to calling a description()
method via reflection to get an Action's description
> ------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-4519
>                 URL: https://issues.apache.org/jira/browse/KARAF-4519
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.0.5
>            Reporter: Luca Burgazzoli
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 4.1.0, 4.0.6
>
>
> Commands descriptions for ActiveMQ 5.x can't be retrieved by Karaf when using help command
as the services exported by ActiveMQ do not provide such information so Karaf fallback to
command name as description which is not very useful.
> An enhancement has been added  to ActiveMQ: https://github.com/apache/activemq/commit/7fd5fa9253deb3a2815cb375b85731a959ad3845
> CommandTracker should be enhanced to try to invoke description method if standard methods
are not available (i.e. Command annotation not present).
> I will provide a PR
> before:
> {code}
> activemq:browse                   browse
> activemq:bstat                    bstat
> activemq:consumer                 consumer
> activemq:dstat                    dstat
> activemq:list                     list
> activemq:producer                 producer
> activemq:purge                    purge
> activemq:query                    query
> {code}
> after:
> {code}
> activemq:browse                   Display selected messages in a specified destination.
> activemq:bstat                    Performs a predefined query that displays useful statistics
regarding the specified broker
> activemq:consumer                 Receives messages from the broker
> activemq:dstat                    Performs a predefined query that displays useful tabular
statistics regarding the specified destination type
> activemq:list                     Lists all available brokers in the specified JMX context
> activemq:producer                 Sends messages to the broker
> activemq:purge                    Delete selected destination's messages that matches
the message selector
> activemq:query                    Display selected broker component's attributes and
statistics.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message