Class LoggingContextManager

java.lang.Object
at.gv.egovernment.moaspss.logging.LoggingContextManager

public class LoggingContextManager extends Object
Provides each thread with a single instance of LoggingContext.
  • Constructor Details

    • LoggingContextManager

      protected LoggingContextManager()
      Creates a new LoggingContextManager. Protected to disallow direct instantiation.
  • Method Details

    • getInstance

      public static LoggingContextManager getInstance()
      Get the single instance of the LoggingContextManager class.
      Returns:
      LoggingContextManager The single instance.
    • setLoggingContext

      public void setLoggingContext(LoggingContext ctx)
      Set the LoggingContext context for the current thread.
      Parameters:
      ctx - The LoggingContext for the current thread.
    • getLoggingContext

      public LoggingContext getLoggingContext()
      Return the LoggingContext for the current thread.
      Returns:
      LoggingContext The LoggingContext for the current thread, or null if none has been set.