Skip to content

Commit 447cfa1

Browse files
committed
Polishing
1 parent ec3d9d6 commit 447cfa1

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

framework-docs/modules/ROOT/pages/core/beans/dependencies/factory-properties-detailed.adoc

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,16 @@ following snippet:
107107
----
108108

109109
The first form is preferable to the second, because using the `idref` tag lets the
110-
container validate at deployment time that the referenced, named bean actually
111-
exists. In the second variation, no validation is performed on the value that is passed
112-
to the `targetName` property of the `client` bean. Typos are only discovered (with most
110+
container validate at deployment time that the referenced, named bean actually exists. In
111+
the second variation, no validation is performed on the value that is passed to the
112+
`targetName` property of the `client` bean. Typos are therefore only discovered (with most
113113
likely fatal results) when the `client` bean is actually instantiated. If the `client`
114-
bean is a xref:core/beans/factory-scopes.adoc[prototype] bean, this typo and the resulting exception
115-
may only be discovered long after the container is deployed.
114+
bean is a xref:core/beans/factory-scopes.adoc[prototype] bean, this typo and the resulting
115+
exception may only be discovered long after the container is deployed.
116116

117-
NOTE: The `local` attribute on the `idref` element is no longer supported in the 4.0 beans
118-
XSD, since it does not provide value over a regular `bean` reference any more. Change
119-
your existing `idref local` references to `idref bean` when upgrading to the 4.0 schema.
120-
121-
A common place (at least in versions earlier than Spring 2.0) where the `<idref/>` element
122-
brings value is in the configuration of xref:core/aop-api/pfb.adoc#aop-pfb-1[AOP interceptors] in a
123-
`ProxyFactoryBean` bean definition. Using `<idref/>` elements when you specify the
117+
NOTE: A common place (at least in versions earlier than Spring 2.0) where the `<idref/>`
118+
element brings value is in the configuration of xref:core/aop-api/pfb.adoc#aop-pfb-1[AOP interceptors]
119+
in a `ProxyFactoryBean` bean definition. Using `<idref/>` elements when you specify the
124120
interceptor names prevents you from misspelling an interceptor ID.
125121

126122

0 commit comments

Comments
 (0)