mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Switch to constructor injection in a few actions
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=232552406
This commit is contained in:
parent
927e8bbd73
commit
29d3ad8052
5 changed files with 49 additions and 50 deletions
|
@ -58,9 +58,14 @@ public class DeleteEntityAction implements Runnable {
|
|||
public static final String PATH = "/_dr/admin/deleteEntity";
|
||||
public static final String PARAM_RAW_KEYS = "rawKeys";
|
||||
|
||||
@Inject @Parameter(PARAM_RAW_KEYS) String rawKeys;
|
||||
@Inject Response response;
|
||||
@Inject DeleteEntityAction() {}
|
||||
private final String rawKeys;
|
||||
private final Response response;
|
||||
|
||||
@Inject
|
||||
DeleteEntityAction(@Parameter(PARAM_RAW_KEYS) String rawKeys, Response response) {
|
||||
this.rawKeys = rawKeys;
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue