parent
b6842730f7
commit
0501999e43
|
|
@ -242,7 +242,7 @@ The following example shows a path being used against another bean, by name:
|
||||||
|
|
||||||
[source,xml,indent=0,subs="verbatim,quotes"]
|
[source,xml,indent=0,subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
// target bean to be referenced by name
|
<!-- target bean to be referenced by name -->
|
||||||
<bean id="person" class="org.springframework.beans.TestBean" scope="prototype">
|
<bean id="person" class="org.springframework.beans.TestBean" scope="prototype">
|
||||||
<property name="age" value="10"/>
|
<property name="age" value="10"/>
|
||||||
<property name="spouse">
|
<property name="spouse">
|
||||||
|
|
@ -252,7 +252,7 @@ The following example shows a path being used against another bean, by name:
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
// results in 11, which is the value of property 'spouse.age' of bean 'person'
|
<!-- results in 11, which is the value of property 'spouse.age' of bean 'person' -->
|
||||||
<bean id="theAge"
|
<bean id="theAge"
|
||||||
class="org.springframework.beans.factory.config.PropertyPathFactoryBean">
|
class="org.springframework.beans.factory.config.PropertyPathFactoryBean">
|
||||||
<property name="targetBeanName" value="person"/>
|
<property name="targetBeanName" value="person"/>
|
||||||
|
|
|
||||||
|
|
@ -462,7 +462,7 @@ The following bean definition uses the calculator defined in Groovy:
|
||||||
[source,xml,indent=0]
|
[source,xml,indent=0]
|
||||||
[subs="verbatim,quotes"]
|
[subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
<-- from the file 'beans.xml' -->
|
<!-- from the file 'beans.xml' -->
|
||||||
<beans>
|
<beans>
|
||||||
<lang:groovy id="calculator" script-source="classpath:calculator.groovy"/>
|
<lang:groovy id="calculator" script-source="classpath:calculator.groovy"/>
|
||||||
</beans>
|
</beans>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue