commit | 66ba03a58cb99eeedec518f1de40dff2882b7736 | [log] [tgz] |
---|---|---|
author | Andrea Cosentino <ancosen@gmail.com> | Fri Dec 06 12:03:16 2019 +0100 |
committer | Andrea Cosentino <ancosen@gmail.com> | Fri Dec 06 12:03:16 2019 +0100 |
tree | 6ad9c25ba83bf507c22baee204ada7639dc573c5 | |
parent | 10dfcf56380beec79b5e1ab23e15358b6b7bed8d [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/ThriftEndpoint.java b/components/camel-thrift/src/main/java/org/apache/camel/component/thrift/ThriftEndpoint.java index f3b5b24..35e6c5f 100644 --- a/components/camel-thrift/src/main/java/org/apache/camel/component/thrift/ThriftEndpoint.java +++ b/components/camel-thrift/src/main/java/org/apache/camel/component/thrift/ThriftEndpoint.java
@@ -61,7 +61,9 @@ @Override public Consumer createConsumer(Processor processor) throws Exception { - return new ThriftConsumer(this, processor, configuration); + ThriftConsumer consumer = new ThriftConsumer(this, processor, configuration); + configureConsumer(consumer); + return consumer; } public String getServiceName() {