I am defining a list in the following way in my blueprint-bean.xml
<cm:default-properties>
<cm:property name="test-list">
<list>
<value type="java.lang.String"> "test 1" </value>
<value type ="java.lang.String"> "test 2." </value>
<value type ="java.lang.String"> "test 3." </value>
</list>
</cm:property>
...
And i have not found a way to successfully retrieve it as a list in my routebuilder class.
Which looks like the following:
public class TestRoute extends RouteBuilder {
@PropertyInject("testInt") int rate;
@PropertyInject("test-list") List<String> testlist;
...
I always get the exception:
No type converter available to convert from type: java.lang.String to the required type: java.util.List with value [ "test 1." , "test 2." , "test 3." ]
So the list seems to be converted to a String at some point and then cannot be converted back to a list at the point of injection.
Am i using the Annotation in a wrong way or is there another way to inject a list property into my JDSL route?
The annotation is working for all my other properties except for the List.