From 245f6bbf599783d34797ca84550b62056aa59266 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 10 Jan 2019 01:34:38 +0100 Subject: [PATCH] Lots of config improvements Removed redundant delegate methods by making the methods non-static Automatically saving config option to the yaml model when it's accessed for the first time Automatically saving yaml config on component/plugin disable Automatically resetting config cache on plugin/component disable Caching the config values so reading is cheaper (it still writes through) Correctly handling (non-)primitive types in configs Allowing to set either a primitive or non-primitive default value and the other is obtained from the provided value #48 --- .idea/misc.xml | 5 +++ .../lib/architecture/ButtonPlugin.java | 33 +++++--------- .../lib/architecture/Component.java | 42 +++++++---------- .../lib/architecture/ConfigData.java | 38 +++++++++++++--- .../lib/architecture/IHaveConfig.java | 45 ++++++++++++++++--- 5 files changed, 103 insertions(+), 60 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index dd45459..6db2058 100755 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,10 @@ + + + + +