You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/10/21 05:49:37 UTC

[camel-examples] 03/03: Regen

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

acosentino pushed a commit to branch camel-examples-3.6.x
in repository https://gitbox.apache.org/repos/asf/camel-examples.git

commit 36c97e8fd79f220bf3a28901de77d4dbfa7987d5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 21 07:47:54 2020 +0200

    Regen
---
 examples/README.adoc                                          |  4 +++-
 .../java/org/apache/camel/example/MyBeanConfigurer.java       | 11 ++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/examples/README.adoc b/examples/README.adoc
index 619cf11..16abee0 100644
--- a/examples/README.adoc
+++ b/examples/README.adoc
@@ -11,7 +11,7 @@ View the individual example READMEs for details.
 == Examples
 
 // examples: START
-Number of Examples: 79 (0 deprecated)
+Number of Examples: 80 (0 deprecated)
 
 [width="100%",cols="4,2,4",options="header"]
 |===
@@ -78,6 +78,8 @@ Number of Examples: 79 (0 deprecated)
 
 | link:camel-example-hazelcast-kubernetes/README.adoc[Hazelcast Kubernetes] (camel-example-hazelcast-kubernetes) | Cloud | An example with Camel and Hazelcast running on Kubernetes
 
+| link:camel-example-main-endpointdsl-aws2/readme.md[Main Endpointdsl Aws2] (camel-example-main-endpointdsl-aws2) | Cloud | An example for showing standalone Camel with multiple AWS2 components
+
 | link:camel-example-cdi-cassandraql/README.adoc[CDI Cassandra] (camel-example-cdi-cassandraql) | Database | Cassandraql CDI example
 
 | link:camel-example-debezium/README.adoc[Debezium] (camel-example-debezium) | Database | An example for Debezium Component
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 73d4b8e..4561ab5 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
@@ -15,6 +15,13 @@ import org.apache.camel.example.MyBean;
 @SuppressWarnings("unchecked")
 public class MyBeanConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
 
+    private static final Map<String, Object> ALL_OPTIONS;
+    static {
+        Map<String, Object> map = new CaseInsensitiveMap();
+        map.put("Hi", java.lang.String.class);
+        ALL_OPTIONS = map;
+    }
+
     @Override
     public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
         org.apache.camel.example.MyBean target = (org.apache.camel.example.MyBean) obj;
@@ -27,9 +34,7 @@ public class MyBeanConfigurer extends org.apache.camel.support.component.Propert
 
     @Override
     public Map<String, Object> getAllOptions(Object target) {
-        Map<String, Object> answer = new CaseInsensitiveMap();
-        answer.put("Hi", java.lang.String.class);
-        return answer;
+        return ALL_OPTIONS;
     }
 
     @Override