my case is like this, i define data in my xml for testing i.e. HashMap, ArrayList, Simple Beans and the like, i have no problem getting the values.
now can i change the values of those defined in the xml?
for example i defined
and in my code i did this:Code:<bean id="list" class="java.util.ArrayList"> <constructor-arg> <list> <value>1</value> <value>5</value> <value>3</value> </list> </construnctor-arg> </bean>
will the next retrieve of applicationContext.getBean("list") will return 1,2,3? of the original 1,5,3?Code:List list = (List) applicationContext.getBean("list"); list.set(1,"2"); // change index 2 w/c is 5 to 2.
thanks


Reply With Quote