camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: CAMEL-10434: Camel catalog support different runtimes to provide their supported list of components etc.
Date Mon, 07 Nov 2016 20:40:42 GMT
CAMEL-10434: Camel catalog support different runtimes to provide their supported list of components
etc.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7e8ec3b2
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7e8ec3b2
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7e8ec3b2

Branch: refs/heads/camel-2.18.x
Commit: 7e8ec3b2d7262584ab22c38df98a68e63075ef48
Parents: 13af4f0
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Nov 7 21:39:33 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Nov 7 21:40:28 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/catalog/DefaultCamelCatalog.java    | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/7e8ec3b2/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java
----------------------------------------------------------------------
diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java
b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java
index dc4a10b..0292f2b 100644
--- a/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java
+++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/DefaultCamelCatalog.java
@@ -121,6 +121,13 @@ public class DefaultCamelCatalog implements CamelCatalog {
         this.runtimeProvider = runtimeProvider;
         // inject CamelCatalog to the provider
         this.runtimeProvider.setCamelCatalog(this);
+        // invalidate the cache
+        cache.remove("findComponentNames");
+        cache.remove("listComponentsAsJson");
+        cache.remove("findDataFormatNames");
+        cache.remove("listDataFormatsAsJson");
+        cache.remove("findLanguageNames");
+        cache.remove("listLanguagesAsJson");
     }
 
     @Override


Mime
View raw message