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 26f2d0b3faf978fc3500d2f73c8b02882f7863a8 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Jul 11 15:26:24 2019 +0200 Camel-JMX: Use PropertyBindingSupport wherever possible --- .../src/main/java/org/apache/camel/component/jmx/JMXComponent.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXComponent.java b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXComponent.java index bcd18af..083b1e9 100644 --- a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXComponent.java +++ b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXComponent.java @@ -23,6 +23,7 @@ import org.apache.camel.spi.annotations.Component; import org.apache.camel.support.DefaultComponent; import org.apache.camel.support.EndpointHelper; import org.apache.camel.support.IntrospectionSupport; +import org.apache.camel.support.PropertyBindingSupport; /** * Component for connecting JMX Notification events to a camel route. @@ -40,9 +41,7 @@ public class JMXComponent extends DefaultComponent { @SuppressWarnings("unchecked") protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception { JMXEndpoint endpoint = new JMXEndpoint(uri, this); - // use the helper class to set all of the properties - EndpointHelper.setReferenceProperties(getCamelContext(), endpoint, parameters); - EndpointHelper.setProperties(getCamelContext(), endpoint, parameters); + PropertyBindingSupport.bindProperties(getCamelContext(), endpoint, parameters); endpoint.setServerURL(remaining);