public class ContextBootstrap extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
IS_DEBUG |
Constructor and Description |
---|
ContextBootstrap() |
Modifier and Type | Method and Description |
---|---|
static void |
configure(LoggerAdapter aLoggerAdapter,
WireAdapter aWireAdapter,
ThreadLocalAccessor aThreadLocalAccessor,
ContextAccessController aContextAccessController,
String aGuid)
This function must be called by the server prior to using context propagation.
|
static void |
debug(LoggerAdapter.MessageID messageID,
Object... args) |
static void |
debug(Throwable t,
LoggerAdapter.MessageID messageID,
Object... args) |
static ContextAccessController |
getContextAccessController() |
static String |
getGuid() |
static LoggerAdapter |
getLoggerAdapter() |
static ThreadLocalAccessor |
getThreadLocalAccessor() |
static WireAdapter |
getWireAdapter() |
public static void configure(LoggerAdapter aLoggerAdapter, WireAdapter aWireAdapter, ThreadLocalAccessor aThreadLocalAccessor, ContextAccessController aContextAccessController, String aGuid)
loggerAdapter
- An adaptor to the logger that is appropriate for
context propagation messages.tla
- An adaptor to the thread management system that allows safe
storage of the ContextMap on the current thread.contextAccessController
- An adaptor to the security manager that
is used to determine access to particular work contexts by the user
associated to the current thread.aGuid
- a unique identifier for this process that is suitable for
transmission over the wire.public static WireAdapter getWireAdapter()
public static LoggerAdapter getLoggerAdapter()
public static void debug(LoggerAdapter.MessageID messageID, Object... args)
messageID
- a MessageIDargs
- The objects to in the messagepublic static void debug(Throwable t, LoggerAdapter.MessageID messageID, Object... args)
t
- a Throwable to include in the debug messagemessageID
- a MessageIDargs
- The objects to in the messagepublic static ThreadLocalAccessor getThreadLocalAccessor()
public static ContextAccessController getContextAccessController()
public static String getGuid()
Copyright © 2020. All rights reserved.