diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2019-10-01 15:11:15 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2019-10-01 15:11:15 +0200 |
commit | a3aeeb7cce564d80c44f1b9aa96208f3a50cfda5 (patch) | |
tree | 5f8accf8e496d98bfbccaf4cffb18b8d33b1d70b /eaaf_core_api/src/main | |
parent | 8b0a2f1632f8fff485dbab0455f11a8ea1e8b857 (diff) | |
download | EAAF-Components-a3aeeb7cce564d80c44f1b9aa96208f3a50cfda5.tar.gz EAAF-Components-a3aeeb7cce564d80c44f1b9aa96208f3a50cfda5.tar.bz2 EAAF-Components-a3aeeb7cce564d80c44f1b9aa96208f3a50cfda5.zip |
allow reset of IMessageProvider in LogMessageProviderFactory
Diffstat (limited to 'eaaf_core_api/src/main')
-rw-r--r-- | eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/logging/LogMessageProviderFactory.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/logging/LogMessageProviderFactory.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/logging/LogMessageProviderFactory.java index 574ac071..eb21edb0 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/logging/LogMessageProviderFactory.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/logging/LogMessageProviderFactory.java @@ -45,21 +45,12 @@ public class LogMessageProviderFactory { /** * Set the implementation specific status messanger. - * <br><br> - * <b>This method can ONLY used ONCE!</b> * * @param messanger */ public static void setStatusMessager(IStatusMessenger messanger) { - if (internalMessager instanceof DummyStatusMessager) { - internalMessager = messanger; - log.info("Set StatusMessanger to '" + messanger.getClass().getName() + "'"); - - } else { - log.error("StatusMessanger CAN ONLY BE SET ONCE!!!!"); - throw new RuntimeException("StatusMessanger CAN ONLY BE SET ONCE!!!!"); - - } - + internalMessager = messanger; + log.info("Set StatusMessanger to '" + messanger.getClass().getName() + "'"); + } } |