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/09/08 07:55:51 UTC

[camel-website] branch master updated: Fix Map generic types for @Configurer (#476)

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-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 00858e7  Fix Map generic types for @Configurer (#476)
00858e7 is described below

commit 00858e779be56b2b54dbf28d7be271fd39f0e498
Author: Aurélien Pupier <ap...@redhat.com>
AuthorDate: Tue Sep 8 09:55:30 2020 +0200

    Fix Map generic types for @Configurer (#476)
    
    Signed-off-by: Aurélien Pupier <ap...@redhat.com>
    
    Co-authored-by: Claus Ibsen <cl...@gmail.com>
---
 content/blog/2020/09/Camel35-Whatsnew/index.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/blog/2020/09/Camel35-Whatsnew/index.md b/content/blog/2020/09/Camel35-Whatsnew/index.md
index 181643e..a986bc3 100644
--- a/content/blog/2020/09/Camel35-Whatsnew/index.md
+++ b/content/blog/2020/09/Camel35-Whatsnew/index.md
@@ -125,14 +125,14 @@ However Camel is now capable to know this information by source code generated _
         @Configurer
         public class Foo
 
-            private Map<Country> countries;
+            private Map<String, Country> countries;
 
             // getter/setter omitted
         }
 
 The `Foo` class has been annotated with `@Configurer` which allows Camel tooling to generate reflection free configurers source code.
 This is what Camel internally uses to do its vast configuration of all its EIPs, components and so on. Now we have exposed
-this for end users. Notice how the Map contains the collection type as a generic type with `Map<Country>`. That information
+this for end users. Notice how the Map contains the collection type as a generic type with `Map<String, Country>`. That information
 is now generated in the configurers, so Camel knows the value types in the collections. The configuration can therefore be shortened to:
 
     camel.beans.foo.countries[usa].name = United States of America