THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Wiki Markup |
---|
{snippet:id=e1|lang=java|url=camel/trunk/camel-core/src/test/java/org/apache/camel/impl/RefDataFormatTest.java} |
Notice we use custom to refer to the Data Format in the Registry. In Java DSL you can also provide the instance directly as shown:
Code Block |
---|
from("direct:a")
.marshal(new MyReverseDataFormat())
.to("mock:a");
|
And likewise to use it in XML DSL:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<marshal ref="reverse"/> |
Include Page | ||||
---|---|---|---|---|
|