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

org.javasimon.spring.SimonWebConfigurationBean Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
package org.javasimon.spring;

import javax.servlet.ServletContext;

import org.javasimon.utils.SimonUtils;

import org.springframework.web.context.ServletContextAware;

/**
 * {@link SimonConfigurationBean} with extended function - just pushes configured manager to the {@link ServletContext} attribute
 * {@link SimonUtils#MANAGER_SERVLET_CTX_ATTRIBUTE}.
 *
 * @author Richard "Virgo" Richter
 */
public class SimonWebConfigurationBean extends SimonConfigurationBean implements ServletContextAware {
	@Override
	public void setServletContext(ServletContext servletContext) {
		servletContext.setAttribute(SimonUtils.MANAGER_SERVLET_CTX_ATTRIBUTE, getSimonManager());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy