mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 15:11:26 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue