|
Spring Framework example source code file (ref1.xml)
The Spring Framework ref1.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"> <!-- We are only using one definition file for the purposes of this test, since we do not have multiple classloaders available in the environment to allow combining multiple files of the same name, but of course the contents within could be spread out across multiple files of the same name withing different jars --> <beans> <!-- this definition could be inside one beanRefFactory.xml file --> <bean id="a.qualified.name.of.some.sort" class="org.springframework.context.support.ClassPathXmlApplicationContext"> <property name="configLocation" value="org/springframework/beans/factory/access/beans1.xml"/> </bean> <!-- while the following two could be inside another, also on the classpath, perhaps coming from another component jar --> <bean id="another.qualified.name" class="org.springframework.context.support.ClassPathXmlApplicationContext"> <property name="configLocations" value="org/springframework/beans/factory/access/beans2.xml"/> <property name="parent" ref="a.qualified.name.of.some.sort"/> </bean> <alias name="another.qualified.name" alias="a.qualified.name.which.is.an.alias"/> </beans> Other Spring Framework examples (source code examples)Here is a short list of links related to this Spring Framework ref1.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
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.