You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/09/21 18:19:56 UTC

svn commit: r290735 - /beehive/branches/v1/final/samples/controls-spring/web/WEB-INF/applicationContext.xml

Author: ekoneil
Date: Wed Sep 21 09:19:53 2005
New Revision: 290735

URL: http://svn.apache.org/viewcvs?rev=290735&view=rev
Log:
Anonymize some data in the Controls + Spring sample.

BB: self
Test: sample works on Tomcat


Modified:
    beehive/branches/v1/final/samples/controls-spring/web/WEB-INF/applicationContext.xml

Modified: beehive/branches/v1/final/samples/controls-spring/web/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewcvs/beehive/branches/v1/final/samples/controls-spring/web/WEB-INF/applicationContext.xml?rev=290735&r1=290734&r2=290735&view=diff
==============================================================================
--- beehive/branches/v1/final/samples/controls-spring/web/WEB-INF/applicationContext.xml (original)
+++ beehive/branches/v1/final/samples/controls-spring/web/WEB-INF/applicationContext.xml Wed Sep 21 09:19:53 2005
@@ -7,25 +7,25 @@
     <bean id="root" parent="AdultBean">
         <constructor-arg index="1"><value>root</value></constructor-arg>
         <property name="firstName"><value>Don</value></property>
-        <property name="lastName"><value>Marvin</value></property>
+        <property name="lastName"><value>Smith</value></property>
         <property name="age"><value>70</value></property>
         <property name="children">
             <list>
-                <value>Kyle</value>
+                <value>Jason</value>
                 <value>Dean</value>
             </list>
         </property>
     </bean>
 
-    <bean name="root/Kyle" parent="AdultBean">
-        <constructor-arg index="1"><value>Kyle</value></constructor-arg>
-        <property name="firstName"><value>Kyle</value></property>
-        <property name="lastName"><value>Marvin</value></property>
+    <bean name="root/Jason" parent="AdultBean">
+        <constructor-arg index="1"><value>Jason</value></constructor-arg>
+        <property name="firstName"><value>Jason</value></property>
+        <property name="lastName"><value>Smith</value></property>
         <property name="age"><value>40</value></property>
         <property name="children">
             <list>
-                <value>Kayla</value>
-                <value>Kate</value>
+                <value>Jane</value>
+                <value>Mary</value>
             </list>
         </property>
     </bean>
@@ -33,7 +33,7 @@
     <bean name="root/Dean" parent="AdultBean">
         <constructor-arg index="1"><value>Dean</value></constructor-arg>
         <property name="firstName"><value>Dean</value></property>
-        <property name="lastName"><value>Marvin</value></property>
+        <property name="lastName"><value>Smith</value></property>
         <property name="age"><value>42</value></property>
         <property name="children">
             <list>
@@ -45,22 +45,22 @@
 
 
     <!-- This is an example of a match against an absolute control ID.  It will be -->
-    <!-- used for the control with an ID of "Kayla" nested inside of the control   -->
-    <!-- with an ID of "Kyle" nested inside of the control with the ID of "root"   -->
-    <bean name="root/Kyle/Kayla" parent="MinorBean">
-        <constructor-arg index="1"><value>Kayla</value></constructor-arg>
-        <property name="firstName"><value>Kayla</value></property>
-        <property name="lastName"><value>Marvin</value></property>
+    <!-- used for the control with an ID of "Jane" nested inside of the control   -->
+    <!-- with an ID of "Jason" nested inside of the control with the ID of "root"   -->
+    <bean name="root/Jason/Jane" parent="MinorBean">
+        <constructor-arg index="1"><value>Jane</value></constructor-arg>
+        <property name="firstName"><value>Jane</value></property>
+        <property name="lastName"><value>Smith</value></property>
         <property name="age"><value>13</value></property>
         <property name="gender"><value>female</value></property>
     </bean>
 
     <!-- This is an example of a match against a relative name.   Any PersonBean    -->
-    <!-- named "Kate" will use this definition, unless an absolute ID match exists -->
-    <bean name="Kate" parent="MinorBean">
-        <constructor-arg index="1"><value>Kate</value></constructor-arg>
-        <property name="firstName"><value>Kate</value></property>
-        <property name="lastName"><value>Marvin</value></property>
+    <!-- named "Mary" will use this definition, unless an absolute ID match exists -->
+    <bean name="Mary" parent="MinorBean">
+        <constructor-arg index="1"><value>Mary</value></constructor-arg>
+        <property name="firstName"><value>Mary</value></property>
+        <property name="lastName"><value>Smith</value></property>
         <property name="age"><value>11</value></property>
         <property name="gender"><value>female</value></property>
     </bean>
@@ -71,8 +71,7 @@
     <!-- exact id match fails.   This definition will be used when instantiating    -->
     <!-- the beans for root/Dean/Grant and root/Dean/Megan, since no explicit defn  -->
     <!-- exists with these names --> 
-    <bean id="org.apache.beehive.samples.spring.control.PersonBean" parent="AdultBean"
-          singleton="false">
+    <bean id="org.apache.beehive.samples.spring.control.PersonBean" parent="AdultBean" singleton="false">
         <property name="firstName"><value>Unknown</value></property>
         <property name="lastName"><value>Unknown</value></property>
         <property name="gender"><value>unknown</value></property>
@@ -82,8 +81,7 @@
     <!-- This bean definition acts as an abstract template for constructing PersonBean -->
     <!-- instances that are implemented as adults.                                     -->
     <!-- In the future, abstract templates such as this one could be auto-generated    -->
-    <bean id="AdultBean" class="org.apache.beehive.samples.spring.control.PersonBean"
-          abstract="true" singleton="false" >
+    <bean id="AdultBean" class="org.apache.beehive.samples.spring.control.PersonBean" abstract="true" singleton="false" >
         <constructor-arg index="0"><null/></constructor-arg>
         <constructor-arg index="1"><null/></constructor-arg> 
         <constructor-arg index="2"><null/></constructor-arg>
@@ -94,8 +92,7 @@
 
     <!-- This bean definition acts as an abstract template for constructing PersonBean -->
     <!-- instances that are implemented as minors                                      -->
-    <bean id="MinorBean" class="org.apache.beehive.samples.spring.control.PersonBean"
-          abstract="true" singleton="false" >
+    <bean id="MinorBean" class="org.apache.beehive.samples.spring.control.PersonBean" abstract="true" singleton="false" >
         <constructor-arg index="0"><null/></constructor-arg>
         <constructor-arg index="1"><null/></constructor-arg>
         <constructor-arg index="2"><null/></constructor-arg>