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