From 7fd5fa9253deb3a2815cb375b85731a959ad3845 Mon Sep 17 00:00:00 2001 From: Hiram Chirino Date: Thu, 5 May 2016 09:25:26 -0400 Subject: [PATCH] Add a method that Karaf can use to get the description of the command. Depends on a change in karaf too to get this to work. --- .../activemq/karaf/commands/ActiveMQCommandSupport.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java b/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java index 58986c5764..bc3a41c559 100644 --- a/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java +++ b/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java @@ -74,6 +74,13 @@ public class ActiveMQCommandSupport extends OsgiCommandSupport { } + /** + * @return the description of the command. + */ + public String description() { + return command.getOneLineDescription(); + } + public Command getCommand() { return command; }