This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new dcf0b9a  FUSE-DOC-1921 added info for XML route definition
dcf0b9a is described below

commit dcf0b9a3658717f362318dbe0769ab3c1d391e5a
Author: Melissa Flinn <mfl...@redhat.com>
AuthorDate: Mon Jan 15 13:19:35 2018 -0500

    FUSE-DOC-1921 added info for XML route definition
---
 .../src/main/docs/bean-validator-component.adoc    | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git 
a/components/camel-bean-validator/src/main/docs/bean-validator-component.adoc 
b/components/camel-bean-validator/src/main/docs/bean-validator-component.adoc
index 0a2eabc..ff7b6bf 100644
--- 
a/components/camel-bean-validator/src/main/docs/bean-validator-component.adoc
+++ 
b/components/camel-bean-validator/src/main/docs/bean-validator-component.adoc
@@ -249,6 +249,30 @@ and the `constraints-car.xml` file
 </constraint-mappings>
 
----------------------------------------------------------------------------------------------------
 
+Here is the XML syntax for the example route definition where 
**OrderedChecks** can be 
https://github.com/apache/camel/blob/master/components/camel-bean-validator/src/test/java/org/apache/camel/component/bean/validator/OrderedChecks.java
 
+
+Note that the body should include an instance of a class to validate.
+
+[source,java]
+----------------------------------------------------------------------------------------------------
+
+<beans xmlns="http://www.springframework.org/schema/beans";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="
+    http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
+    http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd";>
+  
+    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
+        <route>
+            <from uri="direct:start"/>
+            <to 
uri="bean-validator://x?group=org.apache.camel.component.bean.validator.OrderedChecks"/>
+        </route>
+    </camelContext>
+</beans>
+----------------------------------------------------------------------------------------------------
+
+
+
 ### See Also
 
 * link:configuring-camel.html[Configuring Camel]

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <commits@camel.apache.org>'].

Reply via email to