THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The following sample demonstrates how to add a type converter at runtime: TODO: code snippets
Wiki Markup |
---|
{snippet:id=e1|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/impl/TypeConverterRegistryTest.java} |
And our type converter is implemented as:
Wiki Markup |
---|
{snippet:id=e2|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/impl/TypeConverterRegistryTest.java} |
And then we can convert from String to MyOrder as we are used to with the type converter:
Wiki Markup |
---|
{snippet:id=e3|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/impl/TypeConverterRegistryTest.java} |
Discovering Type Converters
...