提交 0f2e94f0 编写于 作者: P Phillip Webb

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
上级 21a49ef4
...@@ -727,8 +727,7 @@ public class ExampleBean { ...@@ -727,8 +727,7 @@ public class ExampleBean {
container ignores these values. It also ignores the container ignores these values. It also ignores the
<literal>scope</literal> flag. Inner beans are <literal>scope</literal> flag. Inner beans are
<emphasis>always</emphasis> anonymous and they are <emphasis>always</emphasis> anonymous and they are
<emphasis>always</emphasis> scoped as <link <emphasis>always</emphasis> created with the outer bean. It is
linkend="beans-factory-scopes-prototype">prototypes</link>. It is
<emphasis>not</emphasis> possible to inject inner beans into <emphasis>not</emphasis> possible to inject inner beans into
collaborating beans other than into the enclosing bean.</para> collaborating beans other than into the enclosing bean.</para>
</section> </section>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册