When using the Spring Framework for managing our beans we can easily wire a collection of beans with a specific other bean, that we want to hold that collection. I have just updated the Jump Start slides of my Spring Framework course with code samples and video clips that explain this possibility. The course is available for free personal usage at www.abelski.com.
The following video clip presents the capability to wire up a bean with a list of other beans.
The following video clip presents the capability to wire up a bean with a set of other beans.
You can find the source code of these two samples available as part of my Spring Framework course.