Package org.jboss.logmanager
Class LogContextSelectorService
- java.lang.Object
-
- org.jboss.logmanager.LogContextSelectorService
-
public final class LogContextSelectorService extends java.lang.Object
A container-friendly service which will manage the installation of aLogContextSelector
into the log system. Only one such service may be active at a time, or an error will result.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.concurrent.atomic.AtomicBoolean
oneInstalled
private LogContextSelector
selector
-
Constructor Summary
Constructors Constructor Description LogContextSelectorService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
selector
private LogContextSelector selector
-
oneInstalled
private static final java.util.concurrent.atomic.AtomicBoolean oneInstalled
-
-
Method Detail
-
getSelector
public LogContextSelector getSelector()
Get the selector to install.- Returns:
- the selector
-
setSelector
public void setSelector(LogContextSelector selector)
Set the selector to install.- Parameters:
selector
- the selector
-
start
public void start()
Install the selector.
-
stop
public void stop()
Uninstall the selector.
-
-