|
@@ -13,29 +13,11 @@ import com.yammer.dropwizard.db.DatabaseConfiguration;
|
|
|
public class HelloWorldConfiguration
|
|
|
extends Configuration
|
|
|
{
|
|
|
- @NotEmpty
|
|
|
- @JsonProperty
|
|
|
- private String template;
|
|
|
-
|
|
|
@Valid
|
|
|
@NotNull
|
|
|
@JsonProperty
|
|
|
private DatabaseConfiguration database = new DatabaseConfiguration();
|
|
|
|
|
|
- @NotEmpty
|
|
|
- @JsonProperty
|
|
|
- private String defaultName = "Stranger";
|
|
|
-
|
|
|
- public String getTemplate()
|
|
|
- {
|
|
|
- return template;
|
|
|
- }
|
|
|
-
|
|
|
- public String getDefaultName()
|
|
|
- {
|
|
|
- return defaultName;
|
|
|
- }
|
|
|
-
|
|
|
public DatabaseConfiguration getDatabaseConfiguration()
|
|
|
{
|
|
|
return database;
|