avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/src/java/org/apache/cornerstone/blocks/sockets DefaultSocketManager.java
Date Wed, 28 Mar 2001 15:12:17 GMT
donaldp     01/03/28 07:12:16

  Modified:    src/java/org/apache/cornerstone/blocks/sockets
                        DefaultSocketManager.java
  Log:
  Remove dependency on ObjectUtil.
  
  Revision  Changes    Path
  1.2       +1 -2      jakarta-avalon-cornerstone/src/java/org/apache/cornerstone/blocks/sockets/DefaultSocketManager.java
  
  Index: DefaultSocketManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/cornerstone/blocks/sockets/DefaultSocketManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultSocketManager.java	2001/02/22 07:52:17	1.1
  +++ DefaultSocketManager.java	2001/03/28 15:12:15	1.2
  @@ -19,7 +19,6 @@
   import org.apache.avalon.configuration.Configurable;
   import org.apache.avalon.configuration.Configuration;
   import org.apache.avalon.configuration.ConfigurationException;
  -import org.apache.avalon.util.ObjectUtil;
   import org.apache.cornerstone.services.sockets.ServerSocketFactory;
   import org.apache.cornerstone.services.sockets.SocketFactory;
   import org.apache.cornerstone.services.sockets.SocketManager;
  @@ -134,7 +133,7 @@
           {
               final ClassLoader classLoader = 
                   (ClassLoader)Thread.currentThread().getContextClassLoader();
  -            factory = (Component)ObjectUtil.createObject( classLoader, className ); 
  +            factory = (Component)classLoader.loadClass( className ).newInstance();
           }
           catch( final Exception e )
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message