Santa's got a list. He wants to make a "present" for every child on hist list (we're assuming for the moment they're all good) and load them all in his sled. Can he do it with Spring?
I've written a simple FileListFactory that implements FactoryBean and returns a list of strings that represents the lines in a given file. Set that aside for now - if we solve the problem for a <list>, then I assume I can plug in a ref to this factory's output in its place.
What I want is a list of "foo" objects. The foo objects are non-singleton instances of some bean (likely with an abstract bean definition). Each foo object created gets one of the list items as a property.
To up the ante one level further, the property in question is of a "bar" object. I have already created a property editor to make "bar" objects from strings. So the thing that iterates over the list of strings should use the property editor infrastructure when setting the per-instance property.
It seems like there ought to be some sort of list factory iterator bean or something for this. The problem appears to be that all of the searches I'm doing to look for example solutions to this fail because terms like "list" are far too generic.