camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lburgazz...@apache.org
Subject camel git commit: ServiceCall: add support for expression builder dsl
Date Tue, 11 Apr 2017 20:19:58 GMT
Repository: camel
Updated Branches:
  refs/heads/master fbd8d65fd -> 70e08b750


ServiceCall: add support for expression builder dsl


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/70e08b75
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/70e08b75
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/70e08b75

Branch: refs/heads/master
Commit: 70e08b7500d4cc1ebea8c93a62bf2d16bfc5df8c
Parents: fbd8d65
Author: lburgazzoli <lburgazzoli@gmail.com>
Authored: Tue Apr 11 22:19:27 2017 +0200
Committer: lburgazzoli <lburgazzoli@gmail.com>
Committed: Tue Apr 11 22:19:27 2017 +0200

----------------------------------------------------------------------
 .../cloud/ServiceCallConfigurationDefinition.java      | 13 +++++++++++++
 .../camel/model/cloud/ServiceCallDefinition.java       | 13 +++++++++++++
 2 files changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/70e08b75/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallConfigurationDefinition.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallConfigurationDefinition.java
b/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallConfigurationDefinition.java
index 2d09680..73950fe 100644
--- a/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallConfigurationDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallConfigurationDefinition.java
@@ -26,6 +26,7 @@ import javax.xml.bind.annotation.XmlTransient;
 
 import org.apache.camel.ExchangePattern;
 import org.apache.camel.Expression;
+import org.apache.camel.builder.ExpressionClause;
 import org.apache.camel.cloud.LoadBalancer;
 import org.apache.camel.cloud.ServiceChooser;
 import org.apache.camel.cloud.ServiceDiscovery;
@@ -405,6 +406,18 @@ public class ServiceCallConfigurationDefinition extends IdentifiedType
{
     }
 
     /**
+     * Sets a custom {@link Expression} to use through an expression builder clause.
+     *
+     * @return a expression builder clause to set the body
+     */
+    public ExpressionClause<ServiceCallConfigurationDefinition> expression() {
+        ExpressionClause<ServiceCallConfigurationDefinition> clause = new ExpressionClause<>(this);
+        setExpression(clause);
+
+        return clause;
+    }
+
+    /**
      * Configures the ServiceDiscovery using the given configuration.
      */
     public ServiceCallConfigurationDefinition serviceDiscoveryConfiguration(ServiceCallServiceDiscoveryConfiguration
serviceDiscoveryConfiguration) {

http://git-wip-us.apache.org/repos/asf/camel/blob/70e08b75/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallDefinition.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallDefinition.java
b/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallDefinition.java
index f0bf660..53821ff 100644
--- a/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/cloud/ServiceCallDefinition.java
@@ -31,6 +31,7 @@ import org.apache.camel.CamelContextAware;
 import org.apache.camel.ExchangePattern;
 import org.apache.camel.Expression;
 import org.apache.camel.Processor;
+import org.apache.camel.builder.ExpressionClause;
 import org.apache.camel.cloud.LoadBalancer;
 import org.apache.camel.cloud.ServiceChooser;
 import org.apache.camel.cloud.ServiceChooserAware;
@@ -475,6 +476,18 @@ public class ServiceCallDefinition extends NoOutputDefinition<ServiceCallDefinit
     }
 
     /**
+     * Sets a custom {@link Expression} to use through an expression builder clause.
+     *
+     * @return a expression builder clause to set the body
+     */
+    public ExpressionClause<ServiceCallDefinition> expression() {
+        ExpressionClause<ServiceCallDefinition> clause = new ExpressionClause<>(this);
+        setExpression(clause);
+
+        return clause;
+    }
+
+    /**
      * Configures the ServiceDiscovery using the given configuration.
      */
     public ServiceCallDefinition serviceDiscoveryConfiguration(ServiceCallServiceDiscoveryConfiguration
serviceDiscoveryConfiguration) {


Mime
View raw message