Announcement Announcement Module
Collapse
No announcement yet.
A beans construction need another bean's property value, how to configure? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • A beans construction need another bean's property value, how to configure?

    <bean id="theClientBean" class="...">
    <property name="targetName">
    <value>theTargetBean</value>
    </property>
    </bean>

    The above is injecting a reference to a bean,

    but I need to inject a bean's property to a bean, How can I do?

  • #2
    The following FactoryBean could do just that.
    PropertyPathFactoryBean

    Comment

    Working...
    X