Skip to content

Instantly share code, notes, and snippets.

@karol-lotkowski
Created October 13, 2015 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karol-lotkowski/a1bb89e7ade3297f13be to your computer and use it in GitHub Desktop.
Save karol-lotkowski/a1bb89e7ade3297f13be to your computer and use it in GitHub Desktop.
Simple Dropwizard app configuration
package com.karollotkowski.cleancode;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import org.hibernate.validator.constraints.NotEmpty;
public class AppConfiguration extends Configuration {
@NotEmpty
private String appName;
@JsonProperty
public String getAppName() {
return appName;
}
@JsonProperty
public void setAppName(final String appName) {
this.appName = appName;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment