-
-
Save karol-lotkowski/a1bb89e7ade3297f13be to your computer and use it in GitHub Desktop.
Simple Dropwizard app configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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