From seam-commits at lists.jboss.org Sat Oct 9 06:39:37 2010
Content-Type: multipart/mixed; boundary="===============3207188175872319203=="
MIME-Version: 1.0
From: seam-commits at lists.jboss.org
To: seam-commits at lists.jboss.org
Subject: [seam-commits] Seam SVN: r13816 -
modules/xml/trunk/docs/src/main/docbook/en-US.
Date: Sat, 09 Oct 2010 06:39:37 -0400
Message-ID: <201010091039.o99AdblA030024@svn01.web.mwc.hst.phx2.redhat.com>
--===============3207188175872319203==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: swd847
Date: 2010-10-09 06:39:37 -0400 (Sat, 09 Oct 2010)
New Revision: 13816
Modified:
modules/xml/trunk/docs/src/main/docbook/en-US/xml-general.xml
Log:
add configuring bean constructors to the docs
Modified: modules/xml/trunk/docs/src/main/docbook/en-US/xml-general.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
--- modules/xml/trunk/docs/src/main/docbook/en-US/xml-general.xml 2010-10-0=
9 09:58:41 UTC (rev 13815)
+++ modules/xml/trunk/docs/src/main/docbook/en-US/xml-general.xml 2010-10-0=
9 10:39:37 UTC (rev 13816)
@@ -424,8 +424,7 @@
int method(MethodValueBean[] param);
=
could be configured via xml using the following:
-
-
@@ -434,7 +433,33 @@
]]>
- =
+
+ Configuring the bean constructor
+
+ It is also possible to configure the bean constructor in a simila=
r manner. This is done with a =
+ <s:parameters>
element directly on the bean el=
ement. The constructor is =
+ resolved in the same way methods are resolved. This constructor w=
ill automatically have the =
+ @Inject
annotation applied to it. Annotations can be=
applied to the constructor =
+ parameters in the same manner as method parameters.
+
+
+
+
+
+
+ =
+]]>
+
+ The example above is equivilent to the following java:
+ =
+ class MyBean {
+ @Inject =
+ MyBean(@MyQualifier Integer count)
+ {
+ ...
+ } =
+} =
+ =
Overriding the type of an injection point
=
--===============3207188175872319203==--