You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2005/05/03 07:50:13 UTC

svn commit: r167865 - /james/server/branches/merge_v2_and_trunk/src/java/org/apache/james/remotemanager/RemoteManager.java

Author: noel
Date: Mon May  2 22:50:12 2005
New Revision: 167865

URL: http://svn.apache.org/viewcvs?rev=167865&view=rev
Log:
merge remotemanager from v2 and trunk.  avalon updates

Modified:
    james/server/branches/merge_v2_and_trunk/src/java/org/apache/james/remotemanager/RemoteManager.java

Modified: james/server/branches/merge_v2_and_trunk/src/java/org/apache/james/remotemanager/RemoteManager.java
URL: http://svn.apache.org/viewcvs/james/server/branches/merge_v2_and_trunk/src/java/org/apache/james/remotemanager/RemoteManager.java?rev=167865&r1=167864&r2=167865&view=diff
==============================================================================
--- james/server/branches/merge_v2_and_trunk/src/java/org/apache/james/remotemanager/RemoteManager.java (original)
+++ james/server/branches/merge_v2_and_trunk/src/java/org/apache/james/remotemanager/RemoteManager.java Mon May  2 22:50:12 2005
@@ -1,5 +1,5 @@
 /***********************************************************************
- * Copyright (c) 1999-2004 The Apache Software Foundation.             *
+ * Copyright (c) 1999-2005 The Apache Software Foundation.             *
  * All rights reserved.                                                *
  * ------------------------------------------------------------------- *
  * Licensed under the Apache License, Version 2.0 (the "License"); you *
@@ -23,14 +23,11 @@
 import org.apache.avalon.excalibur.pool.ObjectFactory;
 import org.apache.avalon.excalibur.pool.Pool;
 import org.apache.avalon.excalibur.pool.Poolable;
-import org.apache.avalon.framework.activity.Disposable;
 import org.apache.avalon.framework.activity.Initializable;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.avalon.framework.service.ServiceManager;
 import org.apache.avalon.framework.configuration.Configuration;
 import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.component.Component;
-import org.apache.avalon.framework.component.ComponentException;
-import org.apache.avalon.framework.component.ComponentManager;
-import org.apache.avalon.framework.component.Composable;
 import org.apache.avalon.framework.logger.LogEnabled;
 
 import org.apache.james.core.AbstractJamesService;
@@ -52,7 +49,7 @@
  * @version 1.0.0, 24/04/1999
  */
 public class RemoteManager
-    extends AbstractJamesService implements Component, RemoteManagerMBean {
+    extends AbstractJamesService implements RemoteManagerMBean {
 
     /**
      * A HashMap of (user id, passwords) for James administrators
@@ -96,18 +93,18 @@
         = new RemoteManagerHandlerConfigurationDataImpl();
 
     /**
-     * @see org.apache.avalon.framework.component.Composable#compose(ComponentManager)
+     * @see org.apache.avalon.framework.service.Serviceable#service(ServiceManager)
      */
-    public void compose( final ComponentManager componentManager )
-        throws ComponentException {
-        super.compose(componentManager);
+    public void service( final ServiceManager componentManager )
+        throws ServiceException {
+        super.service(componentManager);
         mailServer = (MailServer)componentManager.
             lookup( "org.apache.james.services.MailServer" );
         usersStore = (UsersStore)componentManager.
             lookup( "org.apache.james.services.UsersStore" );
         users = usersStore.getRepository("LocalUsers");
         if (users == null) {
-            throw new ComponentException("The user repository could not be found.");
+            throw new ServiceException("","The user repository could not be found.");
         }
     }
 



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