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:
Francis Aiello 2016-11-08 12:56:24 -08:00 committed by Ben McIlwain
parent 1abd0e1123
commit 1671508547
3 changed files with 17 additions and 3 deletions

View file

@ -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);
}
}