geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r694366 - in /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command: CommandCompleterImpl.java CommandDocumenterImpl.java
Date Thu, 11 Sep 2008 17:18:24 GMT
Author: jdillon
Date: Thu Sep 11 10:18:22 2008
New Revision: 694366

URL: http://svn.apache.org/viewvc?rev=694366&view=rev
Log:
Implement CommandContainerAware

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandCompleterImpl.java
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandCompleterImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandCompleterImpl.java?rev=694366&r1=694365&r2=694366&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandCompleterImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandCompleterImpl.java
Thu Sep 11 10:18:22 2008
@@ -22,6 +22,8 @@
 import jline.Completor;
 import org.apache.geronimo.gshell.command.CommandCompleter;
 import org.apache.geronimo.gshell.command.CommandInfo;
+import org.apache.geronimo.gshell.command.CommandContainerAware;
+import org.apache.geronimo.gshell.command.CommandContainer;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -31,15 +33,23 @@
  * @version $Rev$ $Date$
  */
 public class CommandCompleterImpl
-    implements CommandCompleter
+    implements CommandCompleter, CommandContainerAware
 {
     private final Logger log = LoggerFactory.getLogger(getClass());
 
+    private CommandContainer container;
+
+    public void setCommandContainer(final CommandContainer container) {
+        assert container != null;
+
+        this.container = container;
+    }
+
     public Completor createCompletor(final CommandInfo info) {
         assert info != null;
 
         // TODO:
 
-        throw new Error();
+        throw new Error("Not implemented");
     }
 }
\ No newline at end of file

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java?rev=694366&r1=694365&r2=694366&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java
Thu Sep 11 10:18:22 2008
@@ -24,6 +24,8 @@
 import org.apache.geronimo.gshell.command.CommandAction;
 import org.apache.geronimo.gshell.command.CommandDocumenter;
 import org.apache.geronimo.gshell.command.CommandInfo;
+import org.apache.geronimo.gshell.command.CommandContainer;
+import org.apache.geronimo.gshell.command.CommandContainerAware;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -35,10 +37,18 @@
  * @version $Rev$ $Date$
  */
 public class CommandDocumenterImpl
-    implements CommandDocumenter
+    implements CommandDocumenter, CommandContainerAware
 {
     private final Logger log = LoggerFactory.getLogger(getClass());
 
+    private CommandContainer container;
+
+    public void setCommandContainer(final CommandContainer container) {
+        assert container != null;
+
+        this.container = container;
+    }
+
     /**
      * Get the action instance for the given command context.
      *
@@ -50,7 +60,7 @@
 
         // TODO:
 
-        throw new Error();
+        throw new Error("Not implemented");
     }
 
     // CommandDocumenter
@@ -72,7 +82,7 @@
 
         // TODO:
         
-        throw new Error();
+        throw new Error("Not implemented");
     }
 
     //



Mime
View raw message