This is a continuation of my earlier util:map issue. For the time being, I'm now defining a map with string keys and just reversing the map post-construction.
Here's an excerpt from my context:
Here's an excerpt from my class:Code:<util:map id="reverseWorkflowIdentifierMap" key-type="java.lang.String" value-type="somepackage.WorkflowIdentifier"> <entry key="New PostPaid"> <bean class="somepackage.WorkflowIdentifier" p:customerType="NEW" p:paymentArrangement="PostPaid" p:queueType="TLG POSTPAID"/> </entry> ... </util:map>
At load time, I see the following:Code:@Autowired private Map<String, WorkflowIdentifier> reverseWorkflowIdentifierMap;
What am I doing wrong?Code:Caused By: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [somepackage.WorkflowIdentifier] found for dependency [map with value type somepackage.WorkflowIdentifier]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}


Reply With Quote