public final class LogContextSelectorService
extends java.lang.Object
LogContextSelector
into the log system. Only one such service
may be active at a time, or an error will result.Modifier and Type | Field and Description |
---|---|
private static java.util.concurrent.atomic.AtomicBoolean |
oneInstalled |
private LogContextSelector |
selector |
Constructor and Description |
---|
LogContextSelectorService() |
Modifier and Type | Method and Description |
---|---|
LogContextSelector |
getSelector()
Get the selector to install.
|
void |
setSelector(LogContextSelector selector)
Set the selector to install.
|
void |
start()
Install the selector.
|
void |
stop()
Uninstall the selector.
|
private LogContextSelector selector
private static final java.util.concurrent.atomic.AtomicBoolean oneInstalled
public LogContextSelector getSelector()
public void setSelector(LogContextSelector selector)
selector
- the selectorpublic void start()
public void stop()