geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r704970 - /geronimo/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
Date Wed, 15 Oct 2008 17:54:52 GMT
Author: gnodet
Date: Wed Oct 15 10:54:52 2008
New Revision: 704970

URL: http://svn.apache.org/viewvc?rev=704970&view=rev
Log:
Add a constructor to the gshell client to allow its use without spring

Modified:
    geronimo/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java

Modified: geronimo/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java?rev=704970&r1=704969&r2=704970&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
(original)
+++ geronimo/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
Wed Oct 15 10:54:52 2008
@@ -73,6 +73,16 @@
         this.handlers = handlers;
     }
 
+    public RshClient(final CryptoContext crypto, final TransportFactoryLocator locator, final
List<ClientMessageHandler> handlers) {
+        assert crypto != null;
+        assert locator != null;
+        assert handlers != null;
+
+        this.crypto = crypto;
+        this.locator = locator;
+        this.handlers = handlers;
+    }
+
     public void connect(final URI remote, final URI local) throws Exception {
         TransportFactory factory = locator.locate(remote);
 



Mime
View raw message