Question
How can I inject a bean containing a list generated by JAXB ?
Detail
- These lists have no setters.
- You populate them through
getMyList().getList().add(stuff);
For standard java Collections, you usually rely on spring-utils, but Spring does not support these JAXB lists.
Message:no matching editors or conversion strategy found
Context
- WSDL-first - CXF server
- mock responses are pulled from Spring Application context files
Hints
I'm reluctant to introduce a second JAXB runtime just for the sake of mock response, especially considering this will involve generating a slew of new classes to model my domain objects (i.e. thereby duplicating the objects generated by wsdl2java).