public final class ContextClassLoaderLogContextSelector extends Object implements LogContextSelector
| Constructor and Description |
|---|
ContextClassLoaderLogContextSelector()
Construct a new instance.
|
ContextClassLoaderLogContextSelector(LogContextSelector defaultSelector)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
LogContext |
getLogContext()
Get the current log context.
|
void |
registerLogContext(ClassLoader classLoader,
LogContext logContext)
Register a class loader with a log context.
|
boolean |
unregisterLogContext(ClassLoader classLoader,
LogContext logContext)
Unregister a class loader/log context association.
|
public ContextClassLoaderLogContextSelector(LogContextSelector defaultSelector)
defaultSelector - the selector to consult if no matching log context is foundpublic ContextClassLoaderLogContextSelector()
public LogContext getLogContext()
LogContextSelectorgetLogContext in interface LogContextSelectorpublic void registerLogContext(ClassLoader classLoader, LogContext logContext) throws IllegalArgumentException
registerLogContext RuntimePermission.classLoader - the classloaderlogContext - the log contextIllegalArgumentException - if the classloader is already associated with a log contextpublic boolean unregisterLogContext(ClassLoader classLoader, LogContext logContext)
unregisterLogContext RuntimePermission.classLoader - the classloaderlogContext - the log contexttrue if the association exists and was removed, false otherwiseCopyright © 2012 JBoss by Red Hat. All Rights Reserved.