jdevelop
May 22nd, 2007, 11:19 AM
Hello!
We need to initialize some object using jibx mappings, could somebody please explain is it possible to do this using spring, without writing initialization code somehow?
Basically we want to be able to parse the file like this
<servers>
<smtp-server>
<host/>
<port/>
</smp-server>
<smtp-server>
<host/>
<port/>
</smp-server>
</servers>
and initialize certain bean with list of objects of certain class.
What we need is simplify configuration of our system for end users, various settings like <constructor-arg>, <property> seems to be confusing and could lead to misunderstanding, and simple scare customer ;)
We need to initialize some object using jibx mappings, could somebody please explain is it possible to do this using spring, without writing initialization code somehow?
Basically we want to be able to parse the file like this
<servers>
<smtp-server>
<host/>
<port/>
</smp-server>
<smtp-server>
<host/>
<port/>
</smp-server>
</servers>
and initialize certain bean with list of objects of certain class.
What we need is simplify configuration of our system for end users, various settings like <constructor-arg>, <property> seems to be confusing and could lead to misunderstanding, and simple scare customer ;)