Fix reference docs section on inner beans

Inner beans are not prototype beans as, in contrast to what is
documented in the section for prototype beans, the inner bean does
get destruction callbacks applied.

Issue: SPR-10311
This commit is contained in:
Phillip Webb
2013-02-27 13:42:04 -08:00
parent 21a49ef4c5
commit 0f2e94f0fc

View File

@@ -727,8 +727,7 @@ public class ExampleBean {
container ignores these values. It also ignores the
<literal>scope</literal> flag. Inner beans are
<emphasis>always</emphasis> anonymous and they are
<emphasis>always</emphasis> scoped as <link
linkend="beans-factory-scopes-prototype">prototypes</link>. It is
<emphasis>always</emphasis> created with the outer bean. It is
<emphasis>not</emphasis> possible to inject inner beans into
collaborating beans other than into the enclosing bean.</para>
</section>