You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/12/07 16:22:59 UTC

[camel] branch master updated: CAMEL-14263: camel-gora should use source code generated configurer to avoid reflection configuration.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new aa0ce52  CAMEL-14263: camel-gora should use source code generated configurer to avoid reflection configuration.
aa0ce52 is described below

commit aa0ce52b1211e257c2220ed352d524328a780319
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Dec 7 17:22:22 2019 +0100

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

diff --git a/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraComponent.java b/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraComponent.java
index 2c27641..9dda14f 100644
--- a/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraComponent.java
+++ b/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraComponent.java
@@ -52,7 +52,6 @@ public class GoraComponent extends DefaultComponent {
     }
 
     /**
-     *
      * Initialize class and create DataStore instance
      *
      * @param config component configuration
@@ -72,11 +71,13 @@ public class GoraComponent extends DefaultComponent {
                                       final String remaining,
                                       final Map<String, Object> parameters) throws Exception {
 
-        final GoraConfiguration config = new GoraConfiguration();
-        setProperties(config, parameters);
+        GoraConfiguration config = new GoraConfiguration();
         config.setName(remaining);
+
+        GoraEndpoint endpoint = new GoraEndpoint(uri, this, config, dataStore);
+        setProperties(endpoint, parameters);
         init(config);
-        return new GoraEndpoint(uri, this, config, dataStore);
+        return endpoint;
     }
 
     /**