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:23:06 UTC
[camel] branch camel-3.0.x 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 camel-3.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.0.x by this push:
new 50cd1a4 CAMEL-14263: camel-gora should use source code generated configurer to avoid reflection configuration.
50cd1a4 is described below
commit 50cd1a4b9af2edef9046a28556be3ab143ead1ab
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;
}
/**