james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r538833 - /james/server/sandbox/james-jcr/src/main/java/org/apache/james/jcr/AvalonJCRMailRepository.java
Date Thu, 17 May 2007 08:33:01 GMT
Author: jukka
Date: Thu May 17 01:33:00 2007
New Revision: 538833

URL: http://svn.apache.org/viewvc?view=rev&rev=538833
Log:
james-jcr: Use Initializable instead of Startable

Modified:
    james/server/sandbox/james-jcr/src/main/java/org/apache/james/jcr/AvalonJCRMailRepository.java

Modified: james/server/sandbox/james-jcr/src/main/java/org/apache/james/jcr/AvalonJCRMailRepository.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/james-jcr/src/main/java/org/apache/james/jcr/AvalonJCRMailRepository.java?view=diff&rev=538833&r1=538832&r2=538833
==============================================================================
--- james/server/sandbox/james-jcr/src/main/java/org/apache/james/jcr/AvalonJCRMailRepository.java
(original)
+++ james/server/sandbox/james-jcr/src/main/java/org/apache/james/jcr/AvalonJCRMailRepository.java
Thu May 17 01:33:00 2007
@@ -20,7 +20,7 @@
 import javax.jcr.SimpleCredentials;
 import javax.jcr.nodetype.NodeTypeManager;
 
-import org.apache.avalon.framework.activity.Startable;
+import org.apache.avalon.framework.activity.Initializable;
 import org.apache.avalon.framework.configuration.Configurable;
 import org.apache.avalon.framework.configuration.Configuration;
 import org.apache.avalon.framework.configuration.ConfigurationException;
@@ -32,7 +32,7 @@
  * Managed Avalon wrapper for the {@link JCRMailRepository} class.
  */
 public class AvalonJCRMailRepository extends JCRMailRepository
-        implements Configurable, Startable {
+        implements Configurable, Initializable {
 
     //--------------------------------------------------------< Configurable >
 
@@ -61,9 +61,9 @@
         }
     }
 
-    //-----------------------------------------------------------< Startable >
+    //-------------------------------------------------------< Initializable >
 
-    public void start() throws Exception {
+    public void initialize() throws Exception {
         Session session =
             getRepository().login(getCredentials(), getWorkspace());
         try {
@@ -82,9 +82,6 @@
         } finally {
             session.logout();
         }
-    }
-
-    public void stop() {
     }
 
 }



---------------------------------------------------------------------
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