+ added clarifications to section 3.4.5.2 Excluding a bean from autowiring
This commit is contained in:
Costin Leau 2010-02-09 12:23:12 +00:00
parent a9386f5c79
commit 7aec01bbac
1 changed files with 4 additions and 1 deletions

View File

@ -2136,7 +2136,10 @@ support=support@example.co.uk</programlisting>
Spring's XML format, set the <literal>autowire-candidate</literal>
attribute of the <literal>&lt;bean/&gt;</literal> element to
<literal>false</literal>; the container makes that specific bean
definition unavailable to the autowiring infrastructure.</para>
definition unavailable to the autowiring infrastructure (including
annotation style configurations such as
<link linkend="beans-autowired-annotation"><interfacename>@Autowired</interfacename></link>).
</para>
<para>You can also limit autowire candidates based on pattern-matching
against bean names. The top-level <literal>&lt;beans/&gt;</literal>