james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1228161 - /james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/JamesPassCmdHandler.java
Date Fri, 06 Jan 2012 13:00:39 GMT
Author: eric
Date: Fri Jan  6 13:00:39 2012
New Revision: 1228161

URL: http://svn.apache.org/viewvc?rev=1228161&view=rev
Log:
Temporary workaround to allow james start with spring injection - needs to be fixed later,
see TODO (JAMES-1360)

Modified:
    james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/JamesPassCmdHandler.java

Modified: james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/JamesPassCmdHandler.java
URL: http://svn.apache.org/viewvc/james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/JamesPassCmdHandler.java?rev=1228161&r1=1228160&r2=1228161&view=diff
==============================================================================
--- james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/JamesPassCmdHandler.java
(original)
+++ james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/JamesPassCmdHandler.java
Fri Jan  6 13:00:39 2012
@@ -18,6 +18,8 @@
  ****************************************************************/
 package org.apache.james.pop3server.core;
 
+import javax.annotation.Resource;
+
 import org.apache.james.protocols.api.Request;
 import org.apache.james.protocols.api.Response;
 import org.apache.james.protocols.lib.POP3BeforeSMTPHelper;
@@ -29,18 +31,20 @@ import org.apache.james.protocols.pop3.m
 /**
  * {@link PassCmdHandler} which also handles POP3 Before SMTP
  * 
- *
  */
 public class JamesPassCmdHandler extends PassCmdHandler {
 
-    // TODO Check that this constructor is correctly called and can replace the mailboxfactory
injection
-    public JamesPassCmdHandler(MailboxFactory factory) {
-        super(factory);
+    // TODO fix me as a final field...
+    private MailboxFactory factory;
+
+    public JamesPassCmdHandler() {
+        super(null);
+    }
+
+    @Resource(name = "mailboxfactory")
+    public void setMailboxFactory(MailboxFactory factory) {
+        this.factory = factory;
     }
-//    @Resource(name = "mailboxfactory")
-//    public void setMailboxFactory(MailboxFactory factory) {
-//        super.setMailboxFactory(factory);
-//    }
 
     @Override
     public Response onCommand(POP3Session session, Request request) {
@@ -51,5 +55,4 @@ public class JamesPassCmdHandler extends
         return response;
     }
     
-    
 }



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