com.github.apetrelli.gwtintegration.spring.web.SpringWebApplicationContextHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-integration-spring-web Show documentation
Show all versions of gwt-integration-spring-web Show documentation
Integration of GWT with a Spring Web-driven environment.
The newest version!
package com.github.apetrelli.gwtintegration.spring.web;
import javax.servlet.ServletContext;
import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import com.github.apetrelli.gwtintegration.spring.context.server.ApplicationContextHolder;
public class SpringWebApplicationContextHolder implements ApplicationContextHolder {
private ServletContext servletContext;
public SpringWebApplicationContextHolder(ServletContext servletContext) {
this.servletContext = servletContext;
}
@Override
public ApplicationContext getApplicationContext() {
return WebApplicationContextUtils.getWebApplicationContext(servletContext);
}
}