commit | c7cecef3b51a5abfc664f41f0e266f8e8fe06355 | [log] [tgz] |
---|---|---|
author | Andrea Cosentino <ancosen@gmail.com> | Fri Dec 06 11:40:28 2019 +0100 |
committer | Andrea Cosentino <ancosen@gmail.com> | Fri Dec 06 11:40:46 2019 +0100 |
tree | cc1e7b27e5014263859ace31a1fc3a3e52ffdcdf | |
parent | 923f13cac0827c4ec69612e2051ec1e6367fb2b9 [diff] |
CAMEL-14263: camel-thrift should use source code generated configurer to avoid reflection configuration.
diff --git a/components/camel-thrift/src/main/java/org/apache/camel/component/thrift/ThriftComponent.java b/components/camel-thrift/src/main/java/org/apache/camel/component/thrift/ThriftComponent.java index addd6ba..973215f 100644 --- a/components/camel-thrift/src/main/java/org/apache/camel/component/thrift/ThriftComponent.java +++ b/components/camel-thrift/src/main/java/org/apache/camel/component/thrift/ThriftComponent.java
@@ -45,10 +45,9 @@ sslParameters = retrieveGlobalSslContextParameters(); config.setSslParameters(sslParameters); } - - setProperties(config, parameters); + ThriftEndpoint endpoint = new ThriftEndpoint(uri, this, config); + setProperties(endpoint, parameters); - Endpoint endpoint = new ThriftEndpoint(uri, this, config); return endpoint; }