From 0f2e94f0fc0ed999fb47cee3ebf4c93c64763113 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 27 Feb 2013 13:42:04 -0800 Subject: [PATCH] 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 --- src/reference/docbook/beans-dependencies.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/reference/docbook/beans-dependencies.xml b/src/reference/docbook/beans-dependencies.xml index 0723be50fc..7c09841290 100644 --- a/src/reference/docbook/beans-dependencies.xml +++ b/src/reference/docbook/beans-dependencies.xml @@ -727,8 +727,7 @@ public class ExampleBean { container ignores these values. It also ignores the scope flag. Inner beans are always anonymous and they are - always scoped as prototypes. It is + always created with the outer bean. It is not possible to inject inner beans into collaborating beans other than into the enclosing bean.