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 2020/11/10 09:25:58 UTC

[camel] 01/02: Generated configurer special handling for camel-main so we can use them only during bootstrap. Removed need for ALL_OPTIONS in almost all configurers.

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

commit aa9009fa145cd930916703615914b56fbc65151d
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Nov 10 07:03:47 2020 +0100

    Generated configurer special handling for camel-main so we can use them only during bootstrap. Removed need for ALL_OPTIONS in almost all configurers.
---
 .../org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
index 7a3e9c6..b6a4846 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
@@ -1208,7 +1208,8 @@ public class EndpointSchemaGeneratorMojo extends AbstractGeneratorMojo {
             Collection<? extends BaseOptionModel> options, ComponentModel model) {
 
         try (Writer w = new StringWriter()) {
-            PropertyConfigurerGenerator.generatePropertyConfigurer(pn, cn, en, pfqn, psn, hasSuper, component, false, false,
+            boolean extended = model.isApi(); // if the component is api then the generated configurer should be an extended configurer
+            PropertyConfigurerGenerator.generatePropertyConfigurer(pn, cn, en, pfqn, psn, hasSuper, component, extended, false,
                     options, model, w);
             updateResource(sourcesOutputDir.toPath(), fqn.replace('.', '/') + ".java", w.toString());
         } catch (Exception e) {