Spring dependency injection: Inject all instances of interface
How, if possible can I configure a Spring bean with all a collection of other Spring beans that implements a specific interface?
Example: I want to wire the CarFac开发者_如何学Pythontory bean with a list of beans implementing the CarManufacturer interface.
@Inject
private List<CarManufacturer> manufacturers;
加载中,请稍侯......
精彩评论