[weld-commits] Weld SVN: r4876 - doc/trunk/reference/en-US.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Mon Nov 9 12:42:52 EST 2009


Author: gavin.king at jboss.com
Date: 2009-11-09 12:42:52 -0500 (Mon, 09 Nov 2009)
New Revision: 4876

Modified:
   doc/trunk/reference/en-US/injection.xml
Log:
flow better

Modified: doc/trunk/reference/en-US/injection.xml
===================================================================
--- doc/trunk/reference/en-US/injection.xml	2009-11-09 17:42:30 UTC (rev 4875)
+++ doc/trunk/reference/en-US/injection.xml	2009-11-09 17:42:52 UTC (rev 4876)
@@ -14,9 +14,8 @@
       <title>Injection points</title>
 
       <para>
-         Injection points are declared using the JSR-330 annotation, <literal>@Inject</literal>, along with an 
-         optional set of qualifier annotations. CDI supports three primary mechanisms for dependency injection 
-         during bean construction:
+         The <literal>@Inject</literal> annotation lets us define an injection point that is injected during bean 
+         instantiation. Injection can occur via three different mechanisms.
       </para>
       
       <para>
@@ -116,14 +115,8 @@
             One major advantage of constructor injection is that it allows the bean to be immutable.
          </para>
       </tip>
-
+      
       <para>
-         Bean constructors, initializer methods and injected fields must be annotated <literal>@Inject</literal>. The
-         parameters of bean constructors and initializers are injection points, which means the container will search 
-         out beans matching the bean type and qualifiers and pass them in as arguments.         
-      </para>
-
-      <para>
          CDI also supports parameter injection for some other methods that are invoked by the container. For instance, 
          parameter injection is supported for producer methods:
       </para>



More information about the weld-commits mailing list