From a3aeeb7cce564d80c44f1b9aa96208f3a50cfda5 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 1 Oct 2019 15:11:15 +0200 Subject: allow reset of IMessageProvider in LogMessageProviderFactory --- .../eaaf/core/impl/logging/LogMessageProviderFactory.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'eaaf_core_api/src/main') 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. - *

- * This method can ONLY used ONCE! * * @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() + "'"); + } } -- cgit v1.2.3