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

davsclaus 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 34df9f4  Okay we gotta use the specific languages here as the xml dsl 
will output it as generic language instead of header/consntant etc.
34df9f4 is described below

commit 34df9f431e1e456252bdeeebc28f508c72aa3296
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Jan 31 09:41:20 2019 +0100

    Okay we gotta use the specific languages here as the xml dsl will output it 
as generic language instead of header/consntant etc.
---
 .../main/java/org/apache/camel/builder/ExpressionClauseSupport.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/camel-core/src/main/java/org/apache/camel/builder/ExpressionClauseSupport.java
 
b/camel-core/src/main/java/org/apache/camel/builder/ExpressionClauseSupport.java
index b6a972d..a11ff09 100644
--- 
a/camel-core/src/main/java/org/apache/camel/builder/ExpressionClauseSupport.java
+++ 
b/camel-core/src/main/java/org/apache/camel/builder/ExpressionClauseSupport.java
@@ -46,6 +46,9 @@ import org.apache.camel.model.language.XQueryExpression;
  */
 public class ExpressionClauseSupport<T> {
 
+    // Implementation detail: We must use the specific model.language.xxx 
classes to make the DSL use these specific types
+    // which ensures that the route model dumped as XML uses these types, eg 
<header> instead of <language name="header"> etc.
+
     private T result;
     private Expression expressionValue;
     private ExpressionDefinition expressionType;

Reply via email to