META-INF.impala-web-bootstrap.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <!-- ############## Servlet API wrapper definitions ############### --> <bean id="enablePartitionedServletContext" parent = "propertyParent"> <property name="name" value="partitioned.servlet.context"/> <property name="defaultValue" value="constant:[org.impalaframework.web.bootstrap.WebBootstrapProperties.PARTITIONED_SERVLET_CONTEXT_DEFAULT]"/> </bean> <bean id="enableModuleSessionProtection" parent = "propertyParent"> <property name="name" value="session.module.protection"/> <property name="defaultValue" value="constant:[org.impalaframework.web.bootstrap.WebBootstrapProperties.SESSION_MODULE_PROTECTION_DEFAULT]"/> </bean> <bean id="servletContextWrapper" class="org.impalaframework.web.servlet.wrapper.context.PartitionedServletContextWrapper"> <property name = "enablePartitionedServletContext" ref = "enablePartitionedServletContext"/> <property name = "webAttributeQualifier" ref = "webAttributeQualifier"/> </bean> <bean id="requestWrapperFactory" class="org.impalaframework.web.servlet.wrapper.request.PartitionedRequestWrapper"> <property name = "enableModuleSessionProtection" ref = "enableModuleSessionProtection"/> <property name = "enablePartitionedServletContext" ref = "enablePartitionedServletContext"/> <property name = "webAttributeQualifier" ref = "webAttributeQualifier"/> </bean> <!-- ############## Type reader definitions ############### --> <bean id="webPlaceholderModuleTypeReader" class = "org.impalaframework.web.module.type.WebPlaceholderTypeReader"> </bean> <bean id="typeReaderWebContributions" class="org.impalaframework.spring.module.registry.NamedBeanRegistryContributor"> <property name = "registryBeanName" value = "typeReaderRegistry"/> <property name = "contributions"> <map> <entry key="webPlaceholderModuleTypeReader" value="web_placeholder"/> </map> </property> </bean> <!-- ############## Spring module loader definitions ############### --> <!-- application context for root module --> <bean id="springRootModuleLoader" class="org.impalaframework.web.spring.module.RootWebModuleLoader"> <property name = "servletContextWrapper" ref = "servletContextWrapper"/> <property name = "webAttributeQualifier" ref = "webAttributeQualifier"/> </bean> <!-- looks for spring locations in servlet context --> <bean id="springWebRootModuleLoader" class="org.impalaframework.web.spring.module.WebRootModuleLoader"> <property name = "servletContextWrapper" ref = "servletContextWrapper"/> <property name = "webAttributeQualifier" ref = "webAttributeQualifier"/> </bean> <!-- looks for spring locations in class path --> <bean id="springWebModuleLoader" class="org.impalaframework.web.spring.module.WebModuleLoader"> <property name = "servletContextWrapper" ref = "servletContextWrapper"/> <property name = "webAttributeQualifier" ref = "webAttributeQualifier"/> </bean> <bean id="webPlaceholderModuleLoader" class="org.impalaframework.web.spring.loader.WebPlaceholderDelegatingContextLoader"/> <bean id="springModuleLoaderWebContributions" class="org.impalaframework.spring.module.registry.NamedBeanRegistryContributor"> <property name = "registryBeanName" value = "moduleLoaderRegistry"/> <property name = "contributions"> <map> <entry key="springWebRootModuleLoader" value="spring-web_root"/> <entry key="springWebModuleLoader" value="spring-web"/> </map> </property> </bean> <bean id="delegatingContextLoaderWebContributions" class="org.impalaframework.spring.module.registry.NamedBeanRegistryContributor"> <property name = "registryBeanName" value = "delegatingContextLoaderRegistry"/> <property name = "contributions"> <map> <entry key="webPlaceholderModuleLoader" value="web_placeholder"/> </map> </property> </bean> <bean id="webAttributeQualifier" class="org.impalaframework.web.servlet.qualifier.DefaultWebAttributeQualifier"/> </beans>