package com.dmnlk.sample;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author dmnlk
 */
public class SampleConfiguration extends Configuration {
    @NotEmpty
    private String template;

    @NotEmpty
    private String defaultName = "Stranger";

    @JsonProperty
    public String getDefaultName() {
        return defaultName;
    }
    @JsonProperty
    public void setDefaultName(String defaultName) {
        this.defaultName = defaultName;
    }
    @JsonProperty
    public String getTemplate() {
        return template;
    }
    @JsonProperty
    public void setTemplate(String template) {
        this.template = template;
    }
}

@@ -109,16 +109,60 @@
 uration;
+%0A%0Aimport io.dropwizard.db.DataSourceFactory;
 %0Aimport 
@@ -208,16 +208,93 @@
 Empty;%0A%0A
+import javax.validation.Valid;%0Aimport javax.validation.constraints.NotNull;%0A%0A
 /**%0A * @
@@ -417,32 +417,32 @@
 %0A%0A    @NotEmpty%0A
-
     private Stri
@@ -471,16 +471,343 @@
 nger%22;%0A%0A
+%0A    @Valid%0A    @NotNull%0A    @JsonProperty%0A    private DataSourceFactory dataSourceFactory;%0A%0A    public DataSourceFactory getDataSourceFactory() %7B%0A        return dataSourceFactory;%0A    %7D%0A    %0A    public void setDataSourceFactory(DataSourceFactory dataSourceFactory) %7B%0A        this.dataSourceFactory = dataSourceFactory;%0A    %7D%0A%0A
     @Jso

add DataSouceFactory