You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ha...@apache.org on 2002/03/13 11:24:08 UTC
cvs commit: jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/impl/socket PartialSocketObjectStreamServer.java
hammant 02/03/13 02:24:08
Modified: altrmi/src/java/org/apache/commons/altrmi/server/impl/socket
PartialSocketObjectStreamServer.java
Log:
Extra constructor for those with their own Invocation adapters
Revision Changes Path
1.5 +17 -1 jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/impl/socket/PartialSocketObjectStreamServer.java
Index: PartialSocketObjectStreamServer.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/impl/socket/PartialSocketObjectStreamServer.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- PartialSocketObjectStreamServer.java 12 Mar 2002 17:05:19 -0000 1.4
+++ PartialSocketObjectStreamServer.java 13 Mar 2002 10:24:08 -0000 1.5
@@ -13,6 +13,7 @@
import org.apache.commons.altrmi.server.impl.AbstractServer;
import org.apache.commons.altrmi.server.impl.ServerStreamReadWriter;
import org.apache.commons.altrmi.server.impl.ServerObjectStreamReadWriter;
+import org.apache.commons.altrmi.server.impl.adapters.InvocationHandlerAdapter;
import org.apache.commons.altrmi.server.AltrmiServerException;
import java.net.Socket;
@@ -26,7 +27,7 @@
*
*
* @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class PartialSocketObjectStreamServer extends AbstractServer {
@@ -40,6 +41,20 @@
public PartialSocketObjectStreamServer() throws AltrmiServerException {}
/**
+ * Constructor PartialSocketObjectStreamServer
+ *
+ *
+ * @param invocationHandlerAdapter
+ *
+ * @throws AltrmiServerException
+ *
+ */
+ public PartialSocketObjectStreamServer(InvocationHandlerAdapter invocationHandlerAdapter)
+ throws AltrmiServerException {
+ super(invocationHandlerAdapter);
+ }
+
+ /**
* Method handleConnection
*
* @param sock
@@ -63,6 +78,7 @@
SocketStreamServerConnection sssc = new SocketStreamServerConnection(this, sock,
sock.getInputStream(),
sock.getOutputStream(), ssrw);
+
sssc.enableLogging(getLogger());
sssc.run();
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>