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

Spring Framework example source code file (context-addition.xml)

This example Spring Framework source code file (context-addition.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, factory, factory, public, spring//dtd, utf-8, utf-8

The Spring Framework context-addition.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="aca" class="org.springframework.context.ACATest"/>

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

	<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>

	<!-- Factory beans are automatically treated
		differently -->
	<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 context-addition.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.