james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1228111 - /james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/ProtocolHandlerChainImpl.java
Date Fri, 06 Jan 2012 11:29:36 GMT
Author: eric
Date: Fri Jan  6 11:29:36 2012
New Revision: 1228111

URL: http://svn.apache.org/viewvc?rev=1228111&view=rev
Log:
Import and Class rename / usage to use the new protocols 1.6.0-RC2-SNAPSHOT (JAMES-1360)

Modified:
    james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/ProtocolHandlerChainImpl.java

Modified: james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/ProtocolHandlerChainImpl.java
URL: http://svn.apache.org/viewvc/james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/ProtocolHandlerChainImpl.java?rev=1228111&r1=1228110&r2=1228111&view=diff
==============================================================================
--- james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/ProtocolHandlerChainImpl.java
(original)
+++ james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/ProtocolHandlerChainImpl.java
Fri Jan  6 11:29:36 2012
@@ -27,13 +27,12 @@ import org.apache.commons.configuration.
 import org.apache.commons.configuration.ConfigurationUtils;
 import org.apache.commons.configuration.DefaultConfigurationBuilder;
 import org.apache.commons.configuration.HierarchicalConfiguration;
-
 import org.apache.james.protocols.api.handler.ExtensibleHandler;
-import org.apache.james.protocols.api.handler.HandlersPackage;
-import org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandler;
 import org.apache.james.protocols.api.handler.ProtocolHandlerChain;
-import org.apache.james.protocols.api.handler.ProtocolHandlerLoader;
 import org.apache.james.protocols.api.handler.WiringException;
+import org.apache.james.protocols.lib.handler.HandlersPackage;
+import org.apache.james.protocols.lib.handler.ProtocolHandlerLoader;
+import org.apache.james.protocols.lib.lifecycle.InitializingLifecycleAwareProtocolHandler;
 
 public class ProtocolHandlerChainImpl implements ProtocolHandlerChain{
 
@@ -160,11 +159,11 @@ public class ProtocolHandlerChainImpl im
     }
 
     /**
-     * Destroy all loaded {@link LifecycleAwareProtocolHandler}
+     * Destroy all loaded {@link InitializingLifecycleAwareProtocolHandler}
      */
     public void destroy() {
-        LinkedList<LifecycleAwareProtocolHandler> lHandlers = getHandlers(LifecycleAwareProtocolHandler.class);
-        for (LifecycleAwareProtocolHandler handler: lHandlers) {
+        LinkedList<InitializingLifecycleAwareProtocolHandler> lHandlers = getHandlers(InitializingLifecycleAwareProtocolHandler.class);
+        for (InitializingLifecycleAwareProtocolHandler handler: lHandlers) {
             handler.destroy();
         }
     }



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


Mime
View raw message