robson vargas wrote:In Spring, you can use something like this:
Or use util:properies and inject the Properies bean into your class that needs the values. Or inject in that class, then have the setter method go through the properties and populate a List, if you need a List of them. But what are you going to put in the List just the keys or just the values, or is your Value Object has two properties, one for the key and one for the value?
If you don't want the set method to have code to create the list. And now you could inject the List into your object. It is a bit more configuration than just the Property injected into your classes and calling getProperty() methods in code