public interface WildFlyLogContextSelector
extends org.jboss.logmanager.LogContextSelector
Modifier and Type | Interface and Description |
---|---|
static class |
WildFlyLogContextSelector.Factory |
Modifier and Type | Method and Description |
---|---|
boolean |
addLogApiClassLoader(ClassLoader apiClassLoader)
Register a class loader which is a known log API, and thus should be skipped over when searching for the
log context to use for the caller class.
|
org.jboss.logmanager.LogContext |
getAndSet(Object securityKey,
org.jboss.logmanager.LogContext newValue)
Get and set the log context.
|
int |
registeredCount()
Returns the number of registered
log contexts . |
void |
registerLogContext(ClassLoader classLoader,
org.jboss.logmanager.LogContext logContext)
Register a class loader with a log context.
|
boolean |
removeLogApiClassLoader(ClassLoader apiClassLoader)
Remove a class loader from the known log APIs set.
|
boolean |
unregisterLogContext(ClassLoader classLoader,
org.jboss.logmanager.LogContext logContext)
Unregister a class loader/log context association.
|
org.jboss.logmanager.LogContext getAndSet(Object securityKey, org.jboss.logmanager.LogContext newValue)
securityKey
- the security key to check (ignored if none was set on construction)newValue
- the new log context value, or null
to clearnull
if none was setThreadLocalLogContextSelector.getAndSet(Object, org.jboss.logmanager.LogContext)
void registerLogContext(ClassLoader classLoader, org.jboss.logmanager.LogContext logContext)
classLoader
- the class loaderlogContext
- the log contextIllegalArgumentException
- if the class loader is already associated with a log contextClassLoaderLogContextSelector.registerLogContext(ClassLoader,
org.jboss.logmanager.LogContext)
boolean unregisterLogContext(ClassLoader classLoader, org.jboss.logmanager.LogContext logContext)
classLoader
- the class loaderlogContext
- the log contexttrue
if the association exists and was removed, false
otherwiseClassLoaderLogContextSelector.unregisterLogContext(ClassLoader,
org.jboss.logmanager.LogContext)
boolean addLogApiClassLoader(ClassLoader apiClassLoader)
apiClassLoader
- the API class loadertrue
if this class loader was previously unknown, or false
if it was already
registeredClassLoaderLogContextSelector.addLogApiClassLoader(ClassLoader)
boolean removeLogApiClassLoader(ClassLoader apiClassLoader)
apiClassLoader
- the API class loadertrue
if the class loader was removed, or false
if it was not known to this selectorClassLoaderLogContextSelector.removeLogApiClassLoader(ClassLoader)
int registeredCount()
log contexts
.Copyright © 2023 JBoss by Red Hat. All rights reserved.