geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r667089 - /geronimo/gshell/trunk/gshell-plugin/src/main/java/org/apache/geronimo/gshell/builder/ShellBuilder.java
Date Thu, 12 Jun 2008 13:44:51 GMT
Author: jdillon
Date: Thu Jun 12 06:44:51 2008
New Revision: 667089

URL: http://svn.apache.org/viewvc?rev=667089&view=rev
Log:
Make ShellBuilder a ShellFactory too, since that is what it does

Modified:
    geronimo/gshell/trunk/gshell-plugin/src/main/java/org/apache/geronimo/gshell/builder/ShellBuilder.java

Modified: geronimo/gshell/trunk/gshell-plugin/src/main/java/org/apache/geronimo/gshell/builder/ShellBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-plugin/src/main/java/org/apache/geronimo/gshell/builder/ShellBuilder.java?rev=667089&r1=667088&r2=667089&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-plugin/src/main/java/org/apache/geronimo/gshell/builder/ShellBuilder.java
(original)
+++ geronimo/gshell/trunk/gshell-plugin/src/main/java/org/apache/geronimo/gshell/builder/ShellBuilder.java
Thu Jun 12 06:44:51 2008
@@ -32,6 +32,7 @@
 import org.apache.geronimo.gshell.settings.SettingsManager;
 import org.apache.geronimo.gshell.shell.Environment;
 import org.apache.geronimo.gshell.shell.Shell;
+import org.apache.geronimo.gshell.shell.ShellFactory;
 import org.apache.geronimo.gshell.io.SystemOutputHijacker;
 import org.codehaus.plexus.ContainerConfiguration;
 import org.codehaus.plexus.DefaultContainerConfiguration;
@@ -47,6 +48,7 @@
  * @version $Rev$ $Date$
  */
 public class ShellBuilder
+    implements ShellFactory
 {
     private final Logger log = LoggerFactory.getLogger(getClass());
 
@@ -221,4 +223,8 @@
 
         return getApplicationManager().create();
     }
+
+    public Shell create() throws Exception {
+        return build();
+    }
 }
\ No newline at end of file



Mime
View raw message