alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Spring Framework example source code file (test-servlet.xml)

This example Spring Framework source code file (test-servlet.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Spring Framework tags/keywords

bean, bean, doctype, doctype, public, public, spring//dtd, utf-8, utf-8

The Spring Framework test-servlet.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

	<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
		<property name="basename">org/springframework/web/context/WEB-INF/test-messages
	</bean>
	
	<bean id="themeSource" class="org.springframework.ui.context.support.ResourceBundleThemeSource">
		<property name="basenamePrefix">org/springframework/web/context/WEB-INF/test-
	</bean>

	<bean id="aca" class="org.springframework.context.ACATest"/>

	<bean id="aca-prototype" class="org.springframework.context.ACATest" scope="prototype"/>

	<bean id="rod" class="org.springframework.beans.TestBean">
		<property name="name">Rod
		<property name="age">31
		<property name="spouse">
	</bean>

	<bean id="testListener" class="org.springframework.context.TestListener"/>

	<bean id="roderick" parent="rod">
		<property name="name">Roderick
		<property name="age">31
	</bean>

	<bean id="kathy" class="org.springframework.beans.TestBean" scope="prototype"/>

	<bean id="kerry" class="org.springframework.beans.TestBean">
		<property name="name">Kerry
		<property name="age">34
		<property name="spouse">
	</bean>

	<bean id="typeMismatch" class="org.springframework.beans.TestBean" scope="prototype">
		<property name="name">typeMismatch
		<property name="age">34x
		<property name="spouse">
	</bean>

	<bean id="singletonFactory" class="org.springframework.beans.factory.DummyFactory">
	</bean>

	<bean id="prototypeFactory" class="org.springframework.beans.factory.DummyFactory">
		<property name="singleton">false
	</bean>
	
	<bean id="listenerVeto" class="org.springframework.beans.TestBean">
		<property name="name">listenerVeto
		<property name="age">66
	</bean>

	<bean id="validEmpty" class="org.springframework.beans.TestBean"/>

</beans>

Other Spring Framework examples (source code examples)

Here is a short list of links related to this Spring Framework test-servlet.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.