Browse Source

Fix idref example in reference manual

Closes gh-35560
pull/35587/head
Sam Brannen 3 months ago
parent
commit
64d42fefda
  1. 12
      framework-docs/modules/ROOT/pages/core/beans/dependencies/factory-properties-detailed.adoc

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

@ -85,11 +85,11 @@ element. The following example shows how to use it:
[source,xml,indent=0,subs="verbatim,quotes"] [source,xml,indent=0,subs="verbatim,quotes"]
---- ----
<bean id="theTargetBean" class="..."/> <bean id="collaborator" class="..." />
<bean id="theClientBean" class="..."> <bean id="client" class="...">
<property name="targetName"> <property name="targetName">
<idref bean="theTargetBean"/> <idref bean="collaborator" />
</property> </property>
</bean> </bean>
---- ----
@ -99,10 +99,10 @@ following snippet:
[source,xml,indent=0,subs="verbatim,quotes"] [source,xml,indent=0,subs="verbatim,quotes"]
---- ----
<bean id="theTargetBean" class="..." /> <bean id="collaborator" class="..." />
<bean id="theClientBean" class="..."> <bean id="client" class="...">
<property name="targetName" ref="theTargetBean"/> <property name="targetName" value="collaborator" />
</bean> </bean>
---- ----

Loading…
Cancel
Save