jdbishard.dropwizard.testapp.TestAppConfig Maven / Gradle / Ivy
The newest version!
package jdbishard.dropwizard.testapp;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import io.dropwizard.Configuration;
import io.dropwizard.db.DataSourceFactory;
public class TestAppConfig extends Configuration {
@Valid
@NotNull
private DataSourceFactory reallyBigShardedDatabase = new DataSourceFactory();
@JsonProperty("reallyBigShardedDatabase")
public void setDataSourceFactory(DataSourceFactory factory) {
this.reallyBigShardedDatabase = factory;
}
@JsonProperty("reallyBigShardedDatabase")
public DataSourceFactory getDataSourceFactory() {
return reallyBigShardedDatabase;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy