You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2016/05/05 13:26:40 UTC
activemq git commit: 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.
Repository: activemq
Updated Branches:
refs/heads/master 65cef6913 -> 7fd5fa925
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.
Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/7fd5fa92
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/7fd5fa92
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/7fd5fa92
Branch: refs/heads/master
Commit: 7fd5fa9253deb3a2815cb375b85731a959ad3845
Parents: 65cef69
Author: Hiram Chirino <hi...@hiramchirino.com>
Authored: Thu May 5 09:25:26 2016 -0400
Committer: Hiram Chirino <hi...@hiramchirino.com>
Committed: Thu May 5 09:26:33 2016 -0400
----------------------------------------------------------------------
.../activemq/karaf/commands/ActiveMQCommandSupport.java | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq/blob/7fd5fa92/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java
----------------------------------------------------------------------
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 58986c5..bc3a41c 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;
}