Announcement Announcement Module
No announcement yet.
Customize spring bean property value Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Customize spring bean property value


    I'm using custom schemas for creating a set of objects. I want to be able to redefine some properties values that are inhering from a parent bean on the child bean. Overriding the whole xml element is not an option.

    Something like this:

    <template-house name="base4RoomHouse" address="#{customAddress}" rooms="4" >
    <owner name="#{customOwner}" address="#{customAddress}" />

    <house name="peterHouse" parent="base4RoomHouse">
    <template-property name="customOwner" value="Peter"/>
    <template-property name="customAddress" value="Park Av. 4234"/>

    Ideally I would have to be able to process those properties wrapped by #{} and set the value of the bean (if it's a property or an constructor arg) after loading the values from template-property.

    Is this possible?.

    Thanks, Pablo.