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

com.github.apetrelli.gwtintegration.spring.web.SpringWebApplicationContextHolder Maven / Gradle / Ivy

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy