You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/12/06 15:02:34 UTC

[camel] 01/02: CAMEL-14263: camel-smpp should use source code generated configurer to avoid reflection configuration.

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 05010d016f87f734bf2dfcc5a2243517fec6f6fb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 6 15:36:14 2019 +0100

    CAMEL-14263: camel-smpp should use source code generated configurer to avoid reflection configuration.
---
 .../src/main/java/org/apache/camel/component/smpp/SmppComponent.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppComponent.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppComponent.java
index b6c991c..5959216 100644
--- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppComponent.java
+++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppComponent.java
@@ -56,7 +56,10 @@ public class SmppComponent extends DefaultComponent {
         config.configureFromURI(new URI(uri));
         setProperties(config, parameters);
 
-        return createEndpoint(uri, config);
+        SmppEndpoint answer = new SmppEndpoint(uri, this, config);
+        setProperties(answer, parameters);
+        
+        return answer;
     }
 
     /**