mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Use Dagger to @Inject DnsQueue everywhere that is feasible
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136062053
This commit is contained in:
parent
a13f6aded8
commit
6a738557fb
17 changed files with 47 additions and 15 deletions
|
@ -36,8 +36,6 @@ public class RefreshAllDomainsAction implements Runnable {
|
|||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
private static DnsQueue dnsQueue = DnsQueue.create();
|
||||
|
||||
@Inject MapreduceRunner mrRunner;
|
||||
@Inject Response response;
|
||||
@Inject RefreshAllDomainsAction() {}
|
||||
|
@ -58,6 +56,7 @@ public class RefreshAllDomainsAction implements Runnable {
|
|||
/** Mapper to refresh all active domain resources. */
|
||||
public static class RefreshAllDomainsActionMapper extends Mapper<DomainResource, Void, Void> {
|
||||
|
||||
private static final DnsQueue dnsQueue = DnsQueue.create();
|
||||
private static final long serialVersionUID = 1356876487351666133L;
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue