mirror of
https://github.com/google/nomulus
synced 2026-01-05 04:56:03 +00: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:
@@ -31,7 +31,7 @@ public abstract class CreateOrUpdatePremiumListAction implements Runnable {
|
||||
public static final String INPUT_PARAM = "inputData";
|
||||
|
||||
@Inject JsonResponse response;
|
||||
@Inject @Parameter(NAME_PARAM) String name;
|
||||
@Inject @Parameter("premiumListName") String name;
|
||||
@Inject @Parameter(INPUT_PARAM) String inputData;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -57,7 +57,7 @@ public class ToolsServerModule {
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Parameter("name")
|
||||
@Parameter("premiumListName")
|
||||
static String provideName(HttpServletRequest req) {
|
||||
return extractRequiredParameter(req, CreatePremiumListAction.NAME_PARAM);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user