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

org.appng.testsupport.application-testcontext.xml Maven / Gradle / Ivy

There is a newer version: 1.24.5
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
		http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context
		http://www.springframework.org/schema/context/spring-context.xsd">

	<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
		<property name="scopes">
			<map>
				<entry key="session">
					<bean class="org.springframework.context.support.SimpleThreadScope" />
				</entry>
				<entry key="request">
					<bean class="org.springframework.context.support.SimpleThreadScope" />
				</entry>
			</map>
		</property>
	</bean>

	<bean class="org.springframework.mock.web.MockHttpServletRequest" scope="prototype">
		<constructor-arg ref="servletContext" type="javax.servlet.ServletContext" />
	</bean>

	<bean id="servletContext" class="org.springframework.mock.web.MockServletContext" scope="prototype">
		<constructor-arg ref="resourceLoader" type="org.springframework.core.io.ResourceLoader" />
	</bean>

	<bean id="resourceLoader" class="org.springframework.core.io.FileSystemResourceLoader" />

	<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean" />

	<bean id="applicationMarshallService" class="org.appng.xml.MarshallService" factory-method="getApplicationMarshallService">
		<qualifier value="applicationMarshallService" />
	</bean>

	<bean id="marshallService" class="org.appng.xml.MarshallService" factory-method="getMarshallService" />

	<bean id="environment" class="org.appng.api.support.environment.EnvironmentFactoryBean" scope="request" />

	<bean id="request" class="org.appng.api.support.RequestFactoryBean" scope="request" />

	<bean id="selectionFactory" class="org.appng.api.support.SelectionFactory" />

	<bean id="messageSource" class="org.appng.api.support.ResourceBundleMessageSource">
		<property name="alwaysUseMessageFormat" value="true" />
		<property name="defaultEncoding" value="UTF-8" />
	</bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy