I have a situation where I need to create an undetermined number of instances of a particular class. Rather than programatically call getBean() and be container-aware I am considering injecting one instance and cloning it.
I believe this would be following the Prototype pattern, staying container-agnostic and following the Dependency Injection approach.
What are your thoughts?
Thanks in advance,