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 d497936 Camel-Dataformat: Use PropertyBindingSupport wherever possible d497936 is described below commit d4979367c08f94d90dfa318d4cd519ce85053c21 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Jul 11 14:59:14 2019 +0200 Camel-Dataformat: Use PropertyBindingSupport wherever possible --- .../org/apache/camel/component/dataformat/DataFormatComponent.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/camel-dataformat/src/main/java/org/apache/camel/component/dataformat/DataFormatComponent.java b/components/camel-dataformat/src/main/java/org/apache/camel/component/dataformat/DataFormatComponent.java index 94ef6db..9fdfd40 100644 --- a/components/camel-dataformat/src/main/java/org/apache/camel/component/dataformat/DataFormatComponent.java +++ b/components/camel-dataformat/src/main/java/org/apache/camel/component/dataformat/DataFormatComponent.java @@ -23,6 +23,7 @@ import org.apache.camel.spi.DataFormat; import org.apache.camel.spi.annotations.Component; import org.apache.camel.support.DefaultComponent; import org.apache.camel.support.EndpointHelper; +import org.apache.camel.support.PropertyBindingSupport; import org.apache.camel.util.StringHelper; /** @@ -53,9 +54,7 @@ public class DataFormatComponent extends DefaultComponent { throw new IllegalArgumentException("Operation must be either marshal or unmarshal, was: " + operation); } - // set reference properties first as they use # syntax that fools the regular properties setter - EndpointHelper.setReferenceProperties(getCamelContext(), df, parameters); - EndpointHelper.setProperties(getCamelContext(), df, parameters); + PropertyBindingSupport.bindProperties(getCamelContext(), df, parameters); DataFormatEndpoint endpoint = new DataFormatEndpoint(uri, this, df); endpoint.setOperation(operation);