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

Spring Framework example source code file (customNamespace.xml)

This example Spring Framework source code file (customNamespace.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

apple, apple, fiona, harriet, harrop, harrop, rob, rob, utf-8, wheeler, wheeler

The Spring Framework customNamespace.xml source code

<?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:test="http://www.springframework.org/schema/beans/test"
	   xmlns:util="http://www.springframework.org/schema/util"
	   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
       http://www.springframework.org/schema/beans/test http://www.springframework.org/schema/beans/factory/xml/support/spring-test.xsd">

	<test:testBean id="testBean" name="Rob Harrop" age="23"/>

	<bean id="customisedTestBean" class="org.springframework.beans.TestBean">
		<test:set name="Rob Harrop" age="23"/>
	</bean>

	<bean id="debuggingTestBean" class="org.springframework.beans.TestBean">
		<test:debug/>
		<property name="name" value="Rob Harrop"/>
		<property name="age" value="23"/>
	</bean>

	<bean id="chainedTestBean" class="org.springframework.beans.TestBean">
		<test:debug/>
		<test:nop/>
		<property name="name" value="Rob Harrop"/>
		<property name="age" value="23"/>
	</bean>

	<bean id="decorateWithAttribute" class="org.springframework.beans.TestBean" test:object-name="foo"/>

	<util:list id="list.of.things">
		<test:person name="Fiona Apple" age="20"/>
		<test:person name="Harriet Wheeler" age="30"/>
	</util:list>

	<util:set id="set.of.things">
		<test:person name="Fiona Apple" age="20"/>
		<test:person name="Harriet Wheeler" age="30"/>
	</util:set>

	<util:map id="map.of.things">
		<entry key="fiona.apple">
			<test:person name="Fiona Apple" age="20"/>
		</entry>
		<entry key="harriet.wheeler">
			<test:person name="Harriet Wheeler" age="30"/>
		</entry>
	</util:map>

</beans>

Other Spring Framework examples (source code examples)

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

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

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 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.