I am trying initialize a boolean[] in my spring (v3) xml. The catch is that I need to load specific indexes of that array. For example, i want to load bArray below:
boolean[10] bArray;
bArray[Options.AUTO]=true;
bArray[Options.AIR]=false;
bArray[Options.FOOT]=false;
I've seen example like the one below, but this example does not define the index of the value.
<bean id="MyBean" class="org.test.Autos">
<property name="lists">
<util:list list-class="java.util.ArrayList">
<value>true</value>
<value>false</value>
<value>false</value>
</util:list>
</property>
</bean>
Can this be done in Spring xml? Thanks
@Configurationand doing it... in Java, but still inside Spring container?