diff options
author | (no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2005-01-24 11:20:53 +0000 |
---|---|---|
committer | (no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2005-01-24 11:20:53 +0000 |
commit | 035ea4f59287d8c3f3ccd6bae5e6a9306162a0df (patch) | |
tree | 24874baa6bb2ded9ff7ed98d13f34db55d2b7fcd /common/src/at/gv/egovernment/moa/logging/LoggingContextManager.java | |
parent | 03d4edd310c7ccbe7dae4ca951e383c448c16b64 (diff) | |
download | moa-id-spss-035ea4f59287d8c3f3ccd6bae5e6a9306162a0df.tar.gz moa-id-spss-035ea4f59287d8c3f3ccd6bae5e6a9306162a0df.tar.bz2 moa-id-spss-035ea4f59287d8c3f3ccd6bae5e6a9306162a0df.zip |
This commit was manufactured by cvs2svn to create tagtags/Build-SPSS-1_2_0_D04
'Build-SPSS-1_2_0_D04'.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-SPSS-1_2_0_D04@254 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.java | 56 |
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(); - } - -} |