james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1509001 - /james/server/trunk/queue/queue-file/src/main/java/org/apache/james/queue/file/FileMailQueueFactory.java
Date Wed, 31 Jul 2013 19:37:42 GMT
Author: eric
Date: Wed Jul 31 19:37:41 2013
New Revision: 1509001

URL: http://svn.apache.org/r1509001
Log:
Readd @Resource in FileMailQueueFactory to avoid NPE with spring injection (JAMES-1477)

Modified:
    james/server/trunk/queue/queue-file/src/main/java/org/apache/james/queue/file/FileMailQueueFactory.java

Modified: james/server/trunk/queue/queue-file/src/main/java/org/apache/james/queue/file/FileMailQueueFactory.java
URL: http://svn.apache.org/viewvc/james/server/trunk/queue/queue-file/src/main/java/org/apache/james/queue/file/FileMailQueueFactory.java?rev=1509001&r1=1509000&r2=1509001&view=diff
==============================================================================
--- james/server/trunk/queue/queue-file/src/main/java/org/apache/james/queue/file/FileMailQueueFactory.java
(original)
+++ james/server/trunk/queue/queue-file/src/main/java/org/apache/james/queue/file/FileMailQueueFactory.java
Wed Jul 31 19:37:41 2013
@@ -24,7 +24,9 @@ import org.apache.james.queue.api.MailQu
 import org.apache.james.queue.api.MailQueueFactory;
 import org.slf4j.Logger;
 
+import javax.annotation.Resource;
 import javax.inject.Inject;
+
 import java.io.IOException;
 import java.util.HashMap;
 import java.util.Map;
@@ -40,6 +42,7 @@ public class FileMailQueueFactory implem
     private boolean sync = true;
 
     @Inject
+    @Resource
     public void setFileSystem(FileSystem fs) {
         this.fs = fs;
     }



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