Now you can pass reference of the HierarchicalStreamDriver instance directly in the Spring DSL with driverRef attribute:
<bean id="jsonDriver" class="com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver"/> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <dataFormats> <xstream id="xstream" driverRef="jsonDriver"/> </dataFormats> <route> <from uri="direct:start"/> <marshal ref="xstream"/> <to uri="mock:result"/> </route> </camelContext>
No comments:
Post a Comment