[seam-commits] Seam SVN: r12325 - modules/xml/trunk/docs/en-US.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Mar 30 06:32:51 EDT 2010


Author: swd847
Date: 2010-03-30 06:32:50 -0400 (Tue, 30 Mar 2010)
New Revision: 12325

Modified:
   modules/xml/trunk/docs/en-US/xml-general.xml
Log:
documented <type> element



Modified: modules/xml/trunk/docs/en-US/xml-general.xml
===================================================================
--- modules/xml/trunk/docs/en-US/xml-general.xml	2010-03-30 10:24:05 UTC (rev 12324)
+++ modules/xml/trunk/docs/en-US/xml-general.xml	2010-03-30 10:32:50 UTC (rev 12325)
@@ -343,6 +343,33 @@
     </section>
     
     <section>
+        <title>Overriding the type of an injection point</title>
+        
+        <para>It is possible to limit which bean types are availible to inject int a given injection point:</para>
+             <programlisting>
+                  <![CDATA[
+                  
+public class SomeBean
+{
+	public Object someField;
+}                  
+                  
+<test:SomeBean>
+        <test:someField>
+         	<s:Inject/>
+         	<s:type>
+         		<test:InjectedBean/>
+         	</s:type>
+        </test:someField>
+</test:SomeBean>
+]]>
+</programlisting>
+<para>In the example above only beans that are assinable to InjectedBean will be eligable for injection into the field.
+	 This also works for parameter injection points.</para>
+        
+    </section>    
+    
+    <section>
         <title>Annotation Members</title>
         <para>It is also possible to set the value of annotation members. For example:</para>
         <programlisting>



More information about the seam-commits mailing list