james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1501158 - /james/server/trunk/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/FetchScheduler.java
Date Tue, 09 Jul 2013 09:25:42 GMT
Author: eric
Date: Tue Jul  9 09:25:42 2013
New Revision: 1501158

URL: http://svn.apache.org/r1501158
Log:
Fix NPE injecting FetchScheduler

Modified:
    james/server/trunk/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/FetchScheduler.java

Modified: james/server/trunk/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/FetchScheduler.java
URL: http://svn.apache.org/viewvc/james/server/trunk/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/FetchScheduler.java?rev=1501158&r1=1501157&r2=1501158&view=diff
==============================================================================
--- james/server/trunk/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/FetchScheduler.java
(original)
+++ james/server/trunk/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/FetchScheduler.java
Tue Jul  9 09:25:42 2013
@@ -27,6 +27,7 @@ import java.util.concurrent.TimeUnit;
 
 import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
+import javax.annotation.Resource;
 import javax.inject.Inject;
 
 import org.apache.commons.configuration.ConfigurationException;
@@ -69,21 +70,25 @@ public class FetchScheduler implements F
     private DomainList domainList;
 
     @Inject
+    @Resource
     public void setMailQueueFactory(MailQueueFactory queueFactory) {
         this.queueFactory = queueFactory;
     }
 
     @Inject
+    @Resource
     public void setDNSService(DNSService dns) {
         this.dns = dns;
     }
 
     @Inject
+    @Resource
     public void setUsersRepository(UsersRepository urepos) {
         this.urepos = urepos;
     }
 
     @Inject
+    @Resource
     public void setDomainList(DomainList domainList) {
         this.domainList = domainList;
     }



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