-
Feb 22nd, 2013, 10:06 AM
#1
Customize spring bean property value
Hi,
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>
<house name="peterHouse" parent="base4RoomHouse">
<template-property name="customOwner" value="Peter"/>
<template-property name="customAddress" value="Park Av. 4234"/>
</house>
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules