avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/blocks/publishing SocketStreamPublisher.java
Date Fri, 03 Jan 2003 00:17:16 GMT
hammant     2003/01/02 16:17:16

  Modified:    altrmi   default.properties
               altrmi/src/java/org/apache/excalibur/altrmi/blocks/authentication
                        DefaultAuthenticator.java
               altrmi/src/java/org/apache/excalibur/altrmi/blocks/publishing
                        SocketStreamPublisher.java
  Log:
  Changes to make blocks work. Bump rev to 0.8
  
  Revision  Changes    Path
  1.17      +1 -1      jakarta-avalon-excalibur/altrmi/default.properties
  
  Index: default.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/default.properties,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- default.properties	28 Dec 2002 12:23:30 -0000	1.16
  +++ default.properties	3 Jan 2003 00:17:16 -0000	1.17
  @@ -8,7 +8,7 @@
   name=excalibur-altrmi
   Name=Excalibur AltRMI
   dir-name=altrmi
  -version=0.8a
  +version=0.8
   year=2002-2003
   
   common.jar.name=${name}-common-${version}.jar
  
  
  
  1.2       +2 -1      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/blocks/authentication/DefaultAuthenticator.java
  
  Index: DefaultAuthenticator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/blocks/authentication/DefaultAuthenticator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultAuthenticator.java	27 Dec 2002 00:07:28 -0000	1.1
  +++ DefaultAuthenticator.java	3 Jan 2003 00:17:16 -0000	1.2
  @@ -6,6 +6,7 @@
    * the LICENSE.txt file.
    */
   package org.apache.excalibur.altrmi.blocks.authentication;
  +        //org.apache.avalon.excalibur.altrmi.blocks.authentication.DefaultAuthenticator
   
   import org.apache.avalon.framework.activity.Initializable;
   import org.apache.excalibur.altrmi.common.AltrmiAuthentication;
  
  
  
  1.2       +8 -2      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/blocks/publishing/SocketStreamPublisher.java
  
  Index: SocketStreamPublisher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/blocks/publishing/SocketStreamPublisher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SocketStreamPublisher.java	27 Dec 2002 00:07:28 -0000	1.1
  +++ SocketStreamPublisher.java	3 Jan 2003 00:17:16 -0000	1.2
  @@ -11,6 +11,8 @@
   import java.net.InetAddress;
   import java.net.ServerSocket;
   import java.net.UnknownHostException;
  +import java.lang.reflect.Constructor;
  +
   import org.apache.avalon.cornerstone.services.connection.ConnectionHandler;
   import org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory;
   import org.apache.avalon.cornerstone.services.connection.ConnectionManager;
  @@ -128,7 +130,11 @@
   
       public void initialize() throws Exception
       {
  -        setAbstractServer( (AbstractPartialSocketStreamServer)Class.forName( m_socketStreamServerClass
).newInstance() );
  +        Class clazz = this.getClass().getClassLoader().loadClass( m_socketStreamServerClass
);
  +        Constructor constr = clazz.getConstructor(new Class[] {Integer.TYPE});
  +        AbstractPartialSocketStreamServer svr = (AbstractPartialSocketStreamServer)
  +                constr.newInstance(new Object[] {new Integer(m_port)});
  +        setAbstractServer( svr );
   
           setupLogger( getAbstractServer() );
           super.initialize();
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message