This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
initializing a bean with a list propertiesPage Title Module
I want initialize a property of the type List or Map but from an external *.properties file. is this possible?
Doing a Map is easy because a Properties object implements Map. You can convert a file to a Properties object using PropertiesFactoryBean
For list you would have to create a List compatible class that could accept a Map. What would you return as each element of the list? In order to write the custom List class you'd have to figure that out.