All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.data.rest.webmvc.RepositoryRestDispatcherServlet Maven / Gradle / Ivy

There is a newer version: 4.2.5
Show newest version
package org.springframework.data.rest.webmvc;

import org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * Special {@link DispatcherServlet} subclass that certain exporter components can recognize.
 * 
 * @author Jon Brisbin
 */
public class RepositoryRestDispatcherServlet extends DispatcherServlet {

	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());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy