summaryrefslogtreecommitdiff
path: root/eaaf_core_api/src/main
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2019-10-01 15:11:15 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2019-10-01 15:11:15 +0200
commita3aeeb7cce564d80c44f1b9aa96208f3a50cfda5 (patch)
tree5f8accf8e496d98bfbccaf4cffb18b8d33b1d70b /eaaf_core_api/src/main
parent8b0a2f1632f8fff485dbab0455f11a8ea1e8b857 (diff)
downloadEAAF-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.java15
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() + "'");
+
}
}