Author: buildbot Date: Wed May 16 14:21:01 2012 New Revision: 817929 Log: Production update by buildbot for camel Modified: websites/production/camel/content/bindy.html websites/production/camel/content/book-dataformat-appendix.html websites/production/camel/content/book-in-one-page.html websites/production/camel/content/cache/main.pageCache Modified: websites/production/camel/content/bindy.html ============================================================================== --- websites/production/camel/content/bindy.html (original) +++ websites/production/camel/content/bindy.html Wed May 16 14:21:01 2012 @@ -1022,11 +1022,11 @@ Claus,Ibsen,Camel in Action 4,2014,35
The next step consists in instantiating the DataFormat bindy class associated with this record type and providing Java package name(s) as parameter. -For example the following uses the class CsvBindyFormat (who correspond to the class associated with the CSV record type) which is configured with "com.acme.model"
+
For example the following uses the class BindyCsvDataFormat (who correspond to the class associated with the CSV record type) which is configured with "com.acme.model"
package name to initialize the model objects configured in this package.
-DataFormat bindy = new CsvBindyDataFormat("com.acme.model"); +DataFormat bindy = new BindyCsvDataFormat("com.acme.model");
Starting with Camel 2.9.3, you can use a custom com.sun.xml.bind.marshaller.NamespacePrefixMapper to define the namespace prefix for a given namespace uri. This feature is may only available in the JAXB RI!
-<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> - <route> - <from uri="direct:marshall1"/> - <marshal> - <jaxb prettyPrint="true" contextPath="org.apache.camel.example" nameSpacePrefixMapper="org.apache.camel.jaxb.MyNameSpacePrefixMapper"/> - </marshal> - <to uri="mock:marshall"/> - </route> - - <route> - <from uri="direct:marshall2"/> - <marshal ref="myJaxb"/> - <to uri="mock:marshall"/> - </route> -</camelContext> - -<bean id="myJaxb" class="org.apache.camel.converter.jaxb.JaxbDataFormat"> - <property name="contextPath" value="org.apache.camel.example"/> - <property name="nameSpacePrefixMapper"> - <bean class="org.apache.camel.jaxb.MyNameSpacePrefixMapper" /> - </property> -</bean> --
For example the following uses the class CsvBindyFormat (who correspond to the class associated with the CSV record type) which is configured with "com.acme.model"
+
For example the following uses the class BindyCsvDataFormat (who correspond to the class associated with the CSV record type) which is configured with "com.acme.model"
package name to initialize the model objects configured in this package.
-DataFormat bindy = new CsvBindyDataFormat("com.acme.model"); +DataFormat bindy = new BindyCsvDataFormat("com.acme.model");
For example the following uses the class CsvBindyFormat (who correspond to the class associated with the CSV record type) which is configured with "com.acme.model"
+
For example the following uses the class BindyCsvDataFormat (who correspond to the class associated with the CSV record type) which is configured with "com.acme.model"
package name to initialize the model objects configured in this package.
-DataFormat bindy = new CsvBindyDataFormat("com.acme.model"); +DataFormat bindy = new BindyCsvDataFormat("com.acme.model");