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-examples.git
commit 67927f3c8207d046ed5984ce4aa8aa04086ad5e4 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Nov 6 10:07:36 2020 +0100 Regen --- .../java/org/apache/camel/example/MyBeanConfigurer.java | 12 +++++++++--- .../src/main/resources/application.properties | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/examples/camel-example-main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java b/examples/camel-example-main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java index 33257bc..5881c9e 100644 --- a/examples/camel-example-main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java +++ b/examples/camel-example-main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java @@ -21,7 +21,7 @@ public class MyBeanConfigurer extends org.apache.camel.support.component.Propert Map<String, Object> map = new CaseInsensitiveMap(); map.put("Hi", java.lang.String.class); ALL_OPTIONS = map; - ConfigurerStrategy.addConfigurerClearer(MyBeanConfigurer::clearConfigurers); + ConfigurerStrategy.addBootstrapConfigurerClearer(MyBeanConfigurer::clearBootstrapConfigurers); } @Override @@ -40,10 +40,16 @@ public class MyBeanConfigurer extends org.apache.camel.support.component.Propert } public static void clearBootstrapConfigurers() { + ALL_OPTIONS.clear(); } - public static void clearConfigurers() { - ALL_OPTIONS.clear(); + @Override + public Class<?> getOptionType(String name, boolean ignoreCase) { + switch (ignoreCase ? name.toLowerCase() : name) { + case "hi": + case "Hi": return java.lang.String.class; + default: return null; + } } @Override diff --git a/examples/camel-example-main-tiny/src/main/resources/application.properties b/examples/camel-example-main-tiny/src/main/resources/application.properties index e88274c..9b34f6e 100644 --- a/examples/camel-example-main-tiny/src/main/resources/application.properties +++ b/examples/camel-example-main-tiny/src/main/resources/application.properties @@ -30,7 +30,7 @@ camel.main.beanIntrospectionLoggingLevel=INFO camel.main.lightweight = true # can be used to not start the route -# camel.main.auto-startup = false +camel.main.auto-startup = false # configure beans camel.beans.myBean = #class:org.apache.camel.example.MyBean