mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Set svID in ConfigModule instead of hard-coding it
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138552819
This commit is contained in:
parent
1abd0e1123
commit
1671508547
3 changed files with 17 additions and 3 deletions
|
@ -14,6 +14,7 @@
|
|||
|
||||
package google.registry.flows.session;
|
||||
|
||||
import google.registry.config.ConfigModule.Config;
|
||||
import google.registry.flows.EppException;
|
||||
import google.registry.flows.ExtensionManager;
|
||||
import google.registry.flows.Flow;
|
||||
|
@ -26,11 +27,12 @@ public class HelloFlow implements Flow {
|
|||
|
||||
@Inject ExtensionManager extensionManager;
|
||||
@Inject Clock clock;
|
||||
@Inject @Config("greetingServerId") String greetingServerId;
|
||||
@Inject HelloFlow() {}
|
||||
|
||||
@Override
|
||||
public Greeting run() throws EppException {
|
||||
extensionManager.validate(); // There are no legal extensions for this flow.
|
||||
return Greeting.create(clock.nowUtc());
|
||||
return Greeting.create(clock.nowUtc(), greetingServerId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue