A simple trick to do inject Array values in to spring beans.
A quick blurb from the above site....
So, if you have Java that looks like this:
| 1 2 3 | voidsetProperty1(String[] aStringArray){...}voidsetProperty2(List<string> aStringList){...}</string> | 
You can configure it with XML that looks like this:
| 1 2 3 4 5 6 7 8 9 10 11 12 | <propertyname="property1">    <list>        <value>one</value>        <value>two</value>    </list></property><propertyname="property2">    <list>        <value>one</value>        <value>two</value>    </list></property> | 
 
 
No comments:
Post a Comment