From weld-commits at lists.jboss.org Mon Nov 9 12:42:52 2009 Content-Type: multipart/mixed; boundary="===============1153425824546146246==" MIME-Version: 1.0 From: weld-commits at lists.jboss.org To: weld-commits at lists.jboss.org Subject: [weld-commits] Weld SVN: r4876 - doc/trunk/reference/en-US. Date: Mon, 09 Nov 2009 12:42:52 -0500 Message-ID: <200911091742.nA9Hgq3b003946@svn01.web.mwc.hst.phx2.redhat.com> --===============1153425824546146246== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: gavin.king(a)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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- doc/trunk/reference/en-US/injection.xml 2009-11-09 17:42:30 UTC (rev 48= 75) +++ doc/trunk/reference/en-US/injection.xml 2009-11-09 17:42:52 UTC (rev 48= 76) @@ -14,9 +14,8 @@ Injection points = - Injection points are declared using the JSR-330 annotation, @Inject, along with an = - optional set of qualifier annotations. CDI supports three primary= mechanisms for dependency injection = - during bean construction: + The @Inject annotation lets us define an injec= tion point that is injected during bean = + instantiation. Injection can occur via three different mechanisms. = @@ -116,14 +115,8 @@ One major advantage of constructor injection is that it allows= the bean to be immutable. - + = - Bean constructors, initializer methods and injected fields must b= e annotated @Inject. The - parameters of bean constructors and initializers are injection po= ints, which means the container will search = - out beans matching the bean type and qualifiers and pass them in = as arguments. = - - - CDI also supports parameter injection for some other methods that= are invoked by the container. For instance, = parameter injection is supported for producer methods: --===============1153425824546146246==--