[Jboss-cvs] JBossAS SVN: r55840 - projects/microcontainer/trunk/kernel/src/resources/schema

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Aug 12 03:13:03 EDT 2006


Author: alesj
Date: 2006-08-12 03:13:00 -0400 (Sat, 12 Aug 2006)
New Revision: 55840

Modified:
   projects/microcontainer/trunk/kernel/src/resources/schema/bean-deployer_1_0.xsd
   projects/microcontainer/trunk/kernel/src/resources/schema/bean-deployer_2_0.xsd
Log:
Docs with 'contextual injection'.

Modified: projects/microcontainer/trunk/kernel/src/resources/schema/bean-deployer_1_0.xsd
===================================================================
--- projects/microcontainer/trunk/kernel/src/resources/schema/bean-deployer_1_0.xsd	2006-08-12 06:55:48 UTC (rev 55839)
+++ projects/microcontainer/trunk/kernel/src/resources/schema/bean-deployer_1_0.xsd	2006-08-12 07:13:00 UTC (rev 55840)
@@ -265,6 +265,26 @@
               <property name="someProperty"><inject bean="BeanInjected" property="otherProperty"/>
            </bean>
            <bean name="BeanInjected" .../>
+
+           e.g. Contextual injection - finding exactly one instance which matches property's class type
+           <bean name="InjectedIntoMe" ...>
+              <property name="transactionManager"><inject/></property>
+           </bean>
+
+           e.g. Contextual injection - finding at most one instance which matches property's class type
+           <bean name="InjectedIntoMe" ...>
+              <property name="transactionManager"><inject type="Loose"/></property>
+           </bean>
+
+           e.g. Contextual injection - finding exactly one instance which matches property's name
+           <bean name="InjectedIntoMe" ...>
+              <property name="transactionManager"><inject mode="ByName"/></property>
+           </bean>
+
+           e.g. Contextual injection - finding at most one instance which matches property's name
+           <bean name="InjectedIntoMe" ...>
+              <property name="transactionManager"><inject mode="ByName" type="Loose"/></property>
+           </bean>
            ]]>
          </xsd:documentation>
       </xsd:annotation>

Modified: projects/microcontainer/trunk/kernel/src/resources/schema/bean-deployer_2_0.xsd
===================================================================
--- projects/microcontainer/trunk/kernel/src/resources/schema/bean-deployer_2_0.xsd	2006-08-12 06:55:48 UTC (rev 55839)
+++ projects/microcontainer/trunk/kernel/src/resources/schema/bean-deployer_2_0.xsd	2006-08-12 07:13:00 UTC (rev 55840)
@@ -321,6 +321,26 @@
               <property name="someProperty"><inject bean="BeanInjected" property="otherProperty"/>
            </bean>
            <bean name="BeanInjected" .../>
+
+           e.g. Contextual injection - finding exactly one instance which matches property's class type
+           <bean name="InjectedIntoMe" ...>
+              <property name="transactionManager"><inject/></property>
+           </bean>
+
+           e.g. Contextual injection - finding at most one instance which matches property's class type
+           <bean name="InjectedIntoMe" ...>
+              <property name="transactionManager"><inject type="Loose"/></property>
+           </bean>
+
+           e.g. Contextual injection - finding exactly one instance which matches property's name
+           <bean name="InjectedIntoMe" ...>
+              <property name="transactionManager"><inject mode="ByName"/></property>
+           </bean>
+
+           e.g. Contextual injection - finding at most one instance which matches property's name
+           <bean name="InjectedIntoMe" ...>
+              <property name="transactionManager"><inject mode="ByName" type="Loose"/></property>
+           </bean>
            ]]>
          </xsd:documentation>
       </xsd:annotation>




More information about the jboss-cvs-commits mailing list