You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/07/11 13:58:00 UTC

[camel] branch master updated (5dc16d5 -> 4d9693f)

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

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


    from 5dc16d5  Removed unused imports
     new 5c1832c  Camel-Netty4: Use PropertyBindingSupport wherever possible
     new dfd378c  Camel-Rest: Use PropertyBindingSupport wherever possible
     new a9da91f  Removed unused imports
     new 5001ff5  Camel-Wordpress: Use PropertyBindingSupport wherever possible
     new 4d9693f  Removed unused imports

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/camel/component/netty4/NettyConfiguration.java   | 4 ++--
 .../src/main/java/org/apache/camel/component/rest/RestProducer.java  | 5 ++---
 .../java/org/apache/camel/component/wordpress/WordpressEndpoint.java | 4 +---
 3 files changed, 5 insertions(+), 8 deletions(-)


[camel] 04/05: Camel-Wordpress: Use PropertyBindingSupport wherever possible

Posted by ac...@apache.org.
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 5001ff5e23d20d4e260b5b897e4b8e62be03b413
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jul 11 15:57:14 2019 +0200

    Camel-Wordpress: Use PropertyBindingSupport wherever possible
---
 .../java/org/apache/camel/component/wordpress/WordpressEndpoint.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
index 526b717..c80968b 100644
--- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
+++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
@@ -118,8 +118,7 @@ public class WordpressEndpoint extends DefaultEndpoint {
             if (config == null) {
                 config = new WordpressComponentConfiguration();
             }
-            EndpointHelper.setReferenceProperties(getCamelContext(), config, options);
-            EndpointHelper.setProperties(getCamelContext(), config, options);
+            PropertyBindingSupport.bindProperties(getCamelContext(), config, options);
 
             if (config.getSearchCriteria() == null) {
                 final SearchCriteria searchCriteria = WordpressOperationType.valueOf(operation).getCriteriaType().newInstance();


[camel] 05/05: Removed unused imports

Posted by ac...@apache.org.
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 4d9693f40ff86ae9a11ad09521c96ac274cca1ab
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jul 11 15:57:38 2019 +0200

    Removed unused imports
---
 .../java/org/apache/camel/component/wordpress/WordpressEndpoint.java     | 1 -
 1 file changed, 1 deletion(-)

diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
index c80968b..ba43560 100644
--- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
+++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
@@ -37,7 +37,6 @@ import org.apache.camel.spi.UriEndpoint;
 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.IntrospectionSupport;
 import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.util.ObjectHelper;


[camel] 01/05: Camel-Netty4: Use PropertyBindingSupport wherever possible

Posted by ac...@apache.org.
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 5c1832cdb454a4c06f595c06f9659baf9b574926
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jul 11 15:32:44 2019 +0200

    Camel-Netty4: Use PropertyBindingSupport wherever possible
---
 .../java/org/apache/camel/component/netty4/NettyConfiguration.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConfiguration.java b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConfiguration.java
index eb62a1c..d9eb8dd 100644
--- a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConfiguration.java
+++ b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConfiguration.java
@@ -37,6 +37,7 @@ import org.apache.camel.spi.UriParams;
 import org.apache.camel.support.CamelContextHelper;
 import org.apache.camel.support.EndpointHelper;
 import org.apache.camel.support.IntrospectionSupport;
+import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.util.ObjectHelper;
 import org.apache.camel.util.StringHelper;
 import org.slf4j.Logger;
@@ -200,8 +201,7 @@ public class NettyConfiguration extends NettyServerBootstrapConfiguration implem
         addToHandlersList(decoders, referencedDecoders, ChannelHandler.class);
 
         // then set parameters with the help of the camel context type converters
-        EndpointHelper.setReferenceProperties(component.getCamelContext(), this, parameters);
-        EndpointHelper.setProperties(component.getCamelContext(), this, parameters);
+        PropertyBindingSupport.bindProperties(component.getCamelContext(), this, parameters);
 
         // additional netty options, we don't want to store an empty map, so set it as null if empty
         options = IntrospectionSupport.extractProperties(parameters, "option.");


[camel] 03/05: Removed unused imports

Posted by ac...@apache.org.
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 a9da91ffef837d5d934bfee15bcbdd2e625286ee
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jul 11 15:53:20 2019 +0200

    Removed unused imports
---
 .../src/main/java/org/apache/camel/component/rest/RestProducer.java      | 1 -
 1 file changed, 1 deletion(-)

diff --git a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
index fe31566..168d2d5 100644
--- a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
+++ b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
@@ -37,7 +37,6 @@ import org.apache.camel.spi.DataFormat;
 import org.apache.camel.spi.RestConfiguration;
 import org.apache.camel.support.AsyncProcessorConverterHelper;
 import org.apache.camel.support.DefaultAsyncProducer;
-import org.apache.camel.support.EndpointHelper;
 import org.apache.camel.support.IntrospectionSupport;
 import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.support.service.ServiceHelper;


[camel] 02/05: Camel-Rest: Use PropertyBindingSupport wherever possible

Posted by ac...@apache.org.
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 dfd378c7556ef4721742b0da77b8e40e0f33e23c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jul 11 15:53:00 2019 +0200

    Camel-Rest: Use PropertyBindingSupport wherever possible
---
 .../src/main/java/org/apache/camel/component/rest/RestProducer.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
index fa9e236..fe31566 100644
--- a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
+++ b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
@@ -39,6 +39,7 @@ import org.apache.camel.support.AsyncProcessorConverterHelper;
 import org.apache.camel.support.DefaultAsyncProducer;
 import org.apache.camel.support.EndpointHelper;
 import org.apache.camel.support.IntrospectionSupport;
+import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.support.service.ServiceHelper;
 import org.apache.camel.util.CollectionStringBuffer;
 import org.apache.camel.util.FileUtil;
@@ -377,8 +378,7 @@ public class RestProducer extends DefaultAsyncProducer {
             }
 
             // set reference properties first as they use # syntax that fools the regular properties setter
-            EndpointHelper.setReferenceProperties(context, dataFormat, copy);
-            EndpointHelper.setProperties(context, dataFormat, copy);
+            PropertyBindingSupport.bindProperties(context, dataFormat, copy);
         }
     }