|
From: Ou, R. <Ro...@sa...> - 2004-03-22 17:35:28
|
Hi all,
I am not sure if this is a "feature" or a bug, but here it is.
I am trying to use property placeholders in my bean definition. I also =
happen to have some nested bean definitions. But it seems the property =
placeholders only work on top level bean definitions, not inside the =
nested ones.
So this works:
<beans>
<bean class=3D"com.foo.A">
<property name=3D"b">
<ref bean=3D"b"/>
</property>
</bean>
<bean id=3D"b" class=3D"com.foo.B">
<property name=3D"xyz">
<value>${xyz.value}</value>
</property>
</bean>
</beans>
But this doesn't:
<beans>
<bean class=3D"com.foo.A">
<property name=3D"b">
<bean id=3D"b" class=3D"com.foo.B">
<property name=3D"xyz">
<value>${xyz.value}</value>
</property>
</bean>
</property>
</bean>
</beans>
Is this a bug?
Thanks,
Rong
=20
|