aboutsummaryrefslogtreecommitdiff
path: root/common/src/at/gv/egovernment/moa/logging/LoggingContextManager.java
diff options
context:
space:
mode:
author(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-11-07 18:56:52 +0000
committer(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-11-07 18:56:52 +0000
commit45e9a40c92badf8467b79ab20d9e609e43971601 (patch)
tree52ecbc9608a805767db02e03c03cc98c412c574c /common/src/at/gv/egovernment/moa/logging/LoggingContextManager.java
parent04d0e07072552ae435ed0085f91af55e3a059a4a (diff)
downloadmoa-id-spss-tags/Build-1_1_0.tar.gz
moa-id-spss-tags/Build-1_1_0.tar.bz2
moa-id-spss-tags/Build-1_1_0.zip
This commit was manufactured by cvs2svn to create tag 'Build-1_1_0'.tags/Build-1_1_0
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-1_1_0@46 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'common/src/at/gv/egovernment/moa/logging/LoggingContextManager.java')
-rw-r--r--common/src/at/gv/egovernment/moa/logging/LoggingContextManager.java56
1 files changed, 0 insertions, 56 deletions
diff --git a/common/src/at/gv/egovernment/moa/logging/LoggingContextManager.java b/common/src/at/gv/egovernment/moa/logging/LoggingContextManager.java
deleted file mode 100644
index 2bbe6caa1..000000000
--- a/common/src/at/gv/egovernment/moa/logging/LoggingContextManager.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package at.gv.egovernment.moa.logging;
-
-/**
- * Provides each thread with a single instance of <code>LoggingContext</code>.
- *
- * @author Patrick Peck
- * @version $Id$
- */
-public class LoggingContextManager {
- /** The single instance of this class. */
- private static LoggingContextManager instance = null;
-
- /** The <code>LoggingContext</code> for each thread. */
- private ThreadLocal context;
-
- /**
- * Get the single instance of the <code>LoggingContextManager</code> class.
- *
- * @return LoggingContextManager The single instance.
- */
- public static synchronized LoggingContextManager getInstance() {
- if (instance == null) {
- instance = new LoggingContextManager();
- }
- return instance;
- }
-
- /**
- * Creates a new <code>LoggingContextManager</code>.
- *
- * Protected to disallow direct instantiation.
- */
- protected LoggingContextManager() {
- context = new ThreadLocal();
- }
-
- /**
- * Set the <code>LoggingContext</code> context for the current thread.
- *
- * @param ctx The <code>LoggingContext</code> for the current thread.
- */
- public void setLoggingContext(LoggingContext ctx) {
- context.set(ctx);
- }
-
- /**
- * Return the <code>LoggingContext</code> for the current thread.
- *
- * @return LoggingContext The <code>LoggingContext</code> for the current
- * thread, or <code>null</code> if none has been set.
- */
- public LoggingContext getLoggingContext() {
- return (LoggingContext) context.get();
- }
-
-}