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: [email protected]
For additional commands, e-mail: [email protected]