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 <anco...@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.");