geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r576844 - in /geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command: annotation/CommandComponent.java descriptor/CommandDescriptor.java descriptor/CommandSetDescriptor.java
Date Tue, 18 Sep 2007 11:19:38 GMT
Author: jdillon
Date: Tue Sep 18 04:19:37 2007
New Revision: 576844

URL: http://svn.apache.org/viewvc?rev=576844&view=rev
Log:
Add toString()

Modified:
    geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/annotation/CommandComponent.java
    geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandDescriptor.java
    geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandSetDescriptor.java

Modified: geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/annotation/CommandComponent.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/annotation/CommandComponent.java?rev=576844&r1=576843&r2=576844&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/annotation/CommandComponent.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/annotation/CommandComponent.java
Tue Sep 18 04:19:37 2007
@@ -25,7 +25,7 @@
 import java.lang.annotation.Target;
 
 /**
- * Annotation to mark classes as GShell commands implementations.
+ * Annotation to mark classes as GShell command component implementations.
  *
  * @version $Rev$ $Date$
  */

Modified: geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandDescriptor.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandDescriptor.java?rev=576844&r1=576843&r2=576844&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandDescriptor.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandDescriptor.java
Tue Sep 18 04:19:37 2007
@@ -20,6 +20,7 @@
 package org.apache.geronimo.gshell.command.descriptor;
 
 import org.codehaus.plexus.component.repository.ComponentDescriptor;
+import org.apache.geronimo.gshell.common.tostring.ReflectionToStringBuilder;
 
 /**
  * Descriptor for a command.
@@ -39,5 +40,9 @@
         assert id != null;
 
         this.id = id;
+    }
+
+    public String toString() {
+        return ReflectionToStringBuilder.toString(this);
     }
 }

Modified: geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandSetDescriptor.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandSetDescriptor.java?rev=576844&r1=576843&r2=576844&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandSetDescriptor.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/descriptor/CommandSetDescriptor.java
Tue Sep 18 04:19:37 2007
@@ -22,6 +22,7 @@
 import java.util.List;
 
 import org.codehaus.plexus.component.repository.ComponentSetDescriptor;
+import org.apache.geronimo.gshell.common.tostring.ReflectionToStringBuilder;
 
 /**
  * Descriptor for a set of commands.
@@ -61,5 +62,9 @@
 
     public List<CommandDescriptor> getCommandDescriptors() {
         return getComponents();
+    }
+
+    public String toString() {
+        return ReflectionToStringBuilder.toString(this);
     }
 }



Mime
View raw message