package se.kth.karamel.webservice; import com.bazaarvoice.dropwizard.assets.AssetsBundleConfiguration; import com.bazaarvoice.dropwizard.assets.AssetsConfiguration; import com.fasterxml.jackson.annotation.JsonProperty; import io.dropwizard.Configuration; import javax.validation.Valid; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.NotEmpty; /** * Created by babbarshaer on 2014-11-20. */ public class KaramelServiceConfiguration extends Configuration implements AssetsBundleConfiguration { @Valid @NotNull @JsonProperty private final AssetsConfiguration assets = new AssetsConfiguration(); @NotEmpty private String name; @Override public AssetsConfiguration getAssetsConfiguration() { return assets; } @JsonProperty public String getName() { return this.name; } @JsonProperty public void setName(String name) { this.name = name; } }