james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-james/src/org/apache/james/remotemanager RemoteManager.java
Date Mon, 05 Mar 2001 15:18:43 GMT
donaldp     01/03/05 07:18:43

  Modified:    src/org/apache/james/remotemanager RemoteManager.java
  Log:
  Updated to non-deprecated Configuration
  
  Submitted By: "Eung-ju Park" <colus@isoft.co.kr>
  
  Revision  Changes    Path
  1.23      +10 -3     jakarta-james/src/org/apache/james/remotemanager/RemoteManager.java
  
  Index: RemoteManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/org/apache/james/remotemanager/RemoteManager.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- RemoteManager.java	2001/02/18 05:41:43	1.22
  +++ RemoteManager.java	2001/03/05 15:18:38	1.23
  @@ -11,8 +11,13 @@
   import java.io.*;
   import java.net.*;
   import java.util.*;
  -import org.apache.avalon.*;
   import org.apache.avalon.AbstractLoggable;
  +import org.apache.avalon.Composer;
  +import org.apache.avalon.ComponentManager;
  +import org.apache.avalon.configuration.Configurable;
  +import org.apache.avalon.configuration.Configuration;
  +import org.apache.avalon.configuration.ConfigurationException;
  +import org.apache.avalon.Component;
   import org.apache.cornerstone.services.Scheduler;
   import org.apache.cornerstone.services.SocketServer;
   import org.apache.james.*;
  @@ -83,8 +88,10 @@
           
           Configuration adm = conf.getChild("administrator_accounts");
           admaccount = new HashMap();
  -        for (Iterator it = adm.getChildren("account"); it.hasNext();) {
  -            Configuration c = (Configuration) it.next();
  +        final Configuration[] accountConfs = adm.getChildren( "account" );
  +        for ( int i = 0; i < accountConfs.length; i++ )
  +        {
  +            Configuration c = accountConfs[i];
               admaccount.put(c.getAttribute("login"), c.getAttribute("password"));
           }
           if (admaccount.isEmpty()) {
  
  
  

Mime
View raw message