diff options
Diffstat (limited to 'eaaf_core_api')
-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() + "'"); + } } |