As mentioned in previous response, blueprint syntax is not correct. Here is
an example bean with a Map and configuration to inject the map into the bean
package com.foo
class Bean {
private Map<String,String> props;
public void setProps(Map<String,String> props) {
this.props = props;
}
}
<bean id="bean1" class="com.foo.Bean">
<property name="props">
<map>
<entry key="prop1Key" value="prop1Value" />
<entry key="prop2Key" value="prop2Value" />
</map>
</property>
</bean>
CLEMENT Jean-Philippe wrote
> I'm not too sure what this blueprint means.
>
> The first line is
> <bean id="bean1" class="java.util.Map">
> which asks to instantiate an interface which is not possible.
> Then, this bean is asked to contain a
> <map>
> but the injection mode is not specified (syntax); should be argument
> (constructor) or property (setXXX).
>
> Are you sure your XML has blueprint compliant syntax?
>
> JP
--
View this message in context:
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031368.html
Sent from the Karaf - User mailing list archive at Nabble.com.