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.

how to read in a dynamic list of properties?

I have another file like that but having a different amount like this:

Code:

machines=B,C,D

My question is how do I load this variable length machines variable into a bean in my spring config?

something like this:

Code:

<property name="machines" value="${machines}";

where machines is an array or list in my java code..I can define it however I want if I can figure out how to do this.

Basically I'd rather have spring do the parsing and stick each value into a list element instead of me having to write something that reads in the full machines string and do the parsing myself (with the comma delimiter) to put each value into an array or list. Is there an easy way to do this that I'm missing? Thank you!