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

commit f01f10c9784b7eb47db453f3dcde1ef9f2e50d5a
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Jul 9 11:26:13 2019 +0200

    Camel-AWS-SWF - Use PropertyBindingSupport where possible
---
 .../main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java
 
b/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java
index bba4450..58b1917 100644
--- 
a/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java
+++ 
b/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java
@@ -36,6 +36,7 @@ import org.apache.camel.spi.UriParam;
 import org.apache.camel.support.DefaultEndpoint;
 import org.apache.camel.support.EndpointHelper;
 import org.apache.camel.support.ExchangeHelper;
+import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.util.ObjectHelper;
 
 /**
@@ -116,8 +117,8 @@ public class SWFEndpoint extends DefaultEndpoint {
     public StartWorkflowOptions getStartWorkflowOptions() {
         StartWorkflowOptions startWorkflowOptions = new StartWorkflowOptions();
         try {
-            EndpointHelper.setReferenceProperties(getCamelContext(), 
startWorkflowOptions, configuration.getStartWorkflowOptionsParameters());
-            EndpointHelper.setProperties(getCamelContext(), 
startWorkflowOptions, configuration.getStartWorkflowOptionsParameters());
+               PropertyBindingSupport.bindProperties(getCamelContext(), 
startWorkflowOptions, configuration.getStartWorkflowOptionsParameters());
+            PropertyBindingSupport.bindProperties(getCamelContext(), 
startWorkflowOptions, configuration.getStartWorkflowOptionsParameters());
         } catch (Exception e) {
             throw new RuntimeException(e);
         }

Reply via email to