CAMEL-14263: camel-gora should use source code generated configurer to avoid reflection configuration.
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 @@
}
/**
- *
* Initialize class and create DataStore instance
*
* @param config component configuration
@@ -72,11 +71,13 @@
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;
}
/**