IndirectModelComponentCreator now supports clearing the component cache
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 25 Sep 2019 16:10:02 +0000 (18:10 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 25 Sep 2019 16:10:02 +0000 (18:10 +0200)
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/serializing/IndirectModelComponentCreator.java

index d4b758c..926e48b 100644 (file)
@@ -190,6 +190,11 @@ public class IndirectModelComponentCreator
                return SubmodelComponentSerializer.deserialize(model, jsonContents, name, id, null);
        }
 
+       public static void clearComponentCache()
+       {
+               componentCache.clear();
+       }
+
        public static void registerResourceLoader(ResourceLoader resourceLoader)
        {
                registerResourceLoader(resourceLoader, resourceLoader.getClass());