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 eb3a23f  Camel-CXF: Use PropertyBindingSupport where possible
eb3a23f is described below

commit eb3a23f858ce22e3c696dd568464195e73963a14
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Jul 11 14:40:07 2019 +0200

    Camel-CXF: Use PropertyBindingSupport where possible
---
 .../main/java/org/apache/camel/component/cxf/CxfEndpoint.java | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git 
a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
 
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
index f155f4a..12c2e83 100644
--- 
a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
+++ 
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
@@ -68,6 +68,7 @@ import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriPath;
 import org.apache.camel.support.DefaultEndpoint;
 import org.apache.camel.support.EndpointHelper;
+import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.support.SynchronousDelegateProducer;
 import org.apache.camel.support.jsse.SSLContextParameters;
 import org.apache.camel.util.CastUtils;
@@ -1008,10 +1009,7 @@ public class CxfEndpoint extends DefaultEndpoint 
implements AsyncEndpoint, Heade
         super.setCamelContext(c);
         if (this.properties != null) {
             try {
-                EndpointHelper.setReferenceProperties(getCamelContext(),
-                                             this,
-                                             this.properties);
-                EndpointHelper.setProperties(getCamelContext(),
+                PropertyBindingSupport.bindProperties(getCamelContext(),
                                              this,
                                              this.properties);
             } catch (Throwable e) {
@@ -1033,10 +1031,7 @@ public class CxfEndpoint extends DefaultEndpoint 
implements AsyncEndpoint, Heade
         }
         if (getCamelContext() != null && this.properties != null) {
             try {
-                EndpointHelper.setReferenceProperties(getCamelContext(),
-                                             this,
-                                             this.properties);
-                EndpointHelper.setProperties(getCamelContext(),
+                PropertyBindingSupport.bindProperties(getCamelContext(),
                                              this,
                                              this.properties);
             } catch (Throwable e) {

Reply via email to