Class LoggingContextManager
java.lang.Object
at.gv.egovernment.moaspss.logging.LoggingContextManager
Provides each thread with a single instance of
LoggingContext.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newLoggingContextManager. -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingContextManagerGet the single instance of theLoggingContextManagerclass.Return theLoggingContextfor the current thread.voidSet theLoggingContextcontext for the current thread.
-
Constructor Details
-
LoggingContextManager
protected LoggingContextManager()Creates a newLoggingContextManager. Protected to disallow direct instantiation.
-
-
Method Details
-
getInstance
Get the single instance of theLoggingContextManagerclass.- Returns:
- LoggingContextManager The single instance.
-
setLoggingContext
Set theLoggingContextcontext for the current thread.- Parameters:
ctx- TheLoggingContextfor the current thread.
-
getLoggingContext
Return theLoggingContextfor the current thread.- Returns:
- LoggingContext The
LoggingContextfor the current thread, ornullif none has been set.
-