hmsonline/dropwizard-spring — pull request #14 by Nawa (2014-09-25 21:09:31+00:00)
Title: No way to extends from SpringService and use own configuration

No way to extends from SpringService and use own configuration. Parametrized value in Application class used for generic create configuration (see final method `io.dropwizard.Application#getConfigurationClass()`)

application

public class Application extends SpringService{

public static void main(String[] args) throws Exception {
new Application().run(args);
}

@Override
public String getName() {
return "My app";
}
}

configuration

public class MyConfiguration extends SpringServiceConfiguration{
private String myValue;

public String getMyValue() {
return myValue;
}

public void setMyValue(final String myValue) {
this.myValue = myValue;
}
}

yaml config

#......
myValue: someValue