I am using component-scan in my spring application. So in spring context I created map:
Quote from the documentation:
An autowired Maps values will consist of all bean instances that match the expected type, and the Maps keys will contain the corresponding bean names.
I think that just changing @Inject with @Resource will do it.
@Inject
@Resource