I've got a class that extends a collection, specifically a HashMap. I'd like to use it as an autowired field in another class, however when I try to use the @autowired or @resource annotations in the following way:
@Autowired
private myCollectionClass<String, Object> myCollectionClass;
I get the error: no qualifying bean of type [my collection class]
How can I autowire the class?
(I cannot use xml in the project)