You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by gn...@apache.org on 2008/10/15 19:54:52 UTC
svn commit: r704970 -
/geronimo/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
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);