mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 08:30:11 +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
|
@ -31,7 +31,7 @@ import org.joda.time.DateTime;
|
|||
*/
|
||||
public class Greeting extends ImmutableObject implements ResponseOrGreeting {
|
||||
|
||||
String svID = "Charleston Road Registry";
|
||||
String svID;
|
||||
DateTime svDate;
|
||||
|
||||
/** This is never changed, so it might as well be static for efficiency. */
|
||||
|
@ -42,8 +42,9 @@ public class Greeting extends ImmutableObject implements ResponseOrGreeting {
|
|||
@XmlElement
|
||||
static Dcp dcp = new Dcp();
|
||||
|
||||
public static Greeting create(DateTime svDate) {
|
||||
public static Greeting create(DateTime svDate, String svID) {
|
||||
Greeting instance = new Greeting();
|
||||
instance.svID = svID;
|
||||
instance.svDate = svDate;
|
||||
return instance;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue