com.hmsonline.dropwizard.spring.SpringConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-spring Show documentation
Show all versions of dropwizard-spring Show documentation
Spring Integration for DropWizard
// Copyright (c) 2012 Health Market Science, Inc.
package com.hmsonline.dropwizard.spring;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hmsonline.dropwizard.spring.web.FilterConfiguration;
import com.hmsonline.dropwizard.spring.web.ServletConfiguration;
import com.yammer.dropwizard.config.Configuration;
import org.hibernate.validator.constraints.NotEmpty;
import java.util.List;
import java.util.Map;
public class SpringConfiguration extends Configuration {
public static final String WEB_APPLICATION_CONTEXT = "web";
public static final String APPLICATION_CONTEXT = "app";
public static final String CLASSPATH_CONFIG = "classpath";
public static final String FILE_CONFIG = "file";
@NotEmpty
@JsonProperty
private String appContextType;
@NotEmpty
@JsonProperty
private String configLocationsType;
@NotEmpty
@JsonProperty
private List configLocations;
@NotEmpty
@JsonProperty
private List resources;
@JsonProperty
private List healthChecks;
@JsonProperty
private List jerseyProviders;
@JsonProperty
private List managed;
@JsonProperty
private List lifeCycles;
@JsonProperty
private List tasks;
@JsonProperty
private List disabledJerseyFeatures;
@JsonProperty
private List enabledJerseyFeatures;
@JsonProperty
private Map filters;
@JsonProperty
private Map servlets;
public String getAppContextType() {
return appContextType;
}
public List getConfigLocations() {
return configLocations;
}
public List getResources() {
return resources;
}
public List getHealthChecks() {
return healthChecks;
}
public List getJerseyProviders() {
return jerseyProviders;
}
public List getManaged() {
return managed;
}
public List getLifeCycles() {
return lifeCycles;
}
public List getDisabledJerseyFeatures() {
return disabledJerseyFeatures;
}
public List getEnabledJerseyFeatures() {
return enabledJerseyFeatures;
}
public List getTasks() {
return tasks;
}
public Map getFilters() {
return filters;
}
public void setFilters(Map filters) {
this.filters = filters;
}
public Map getServlets() {
return servlets;
}
public void setServlets(Map servlets) {
this.servlets = servlets;
}
public String getConfigLocationsType() {
return configLocationsType;
}
public void setConfigLocationsType(String configLocationsType) {
this.configLocationsType = configLocationsType;
}
}