#71 Added a default no-arg constructor to the helper servlet.

This commit is contained in:
Jon Brisbin
2013-03-07 10:32:21 -06:00
parent 8012d1135d
commit 8b7340c6cc

View File

@@ -11,9 +11,22 @@ import org.springframework.web.servlet.DispatcherServlet;
* @author Jon Brisbin
*/
public class RepositoryRestDispatcherServlet extends DispatcherServlet {
public RepositoryRestDispatcherServlet(WebApplicationContext webApplicationContext) {
super(webApplicationContext);
setContextClass(AnnotationConfigWebApplicationContext.class);
setContextConfigLocation(RepositoryRestMvcConfiguration.class.getName());
}
private static final long serialVersionUID = 5761346441984290240L;
public RepositoryRestDispatcherServlet() {
configure();
}
public RepositoryRestDispatcherServlet(WebApplicationContext webApplicationContext) {
super(webApplicationContext);
configure();
}
private void configure() {
setContextClass(AnnotationConfigWebApplicationContext.class);
setContextConfigLocation(RepositoryRestMvcConfiguration.class.getName());
}
}