| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private final LogContextSelector | |
| private final PrivilegedAction | |
| private static final Permission | |
| private static final Permission |
| Access | Constructor and Description |
|---|---|
| public | ContextClassLoaderLogContextSelector(final LogContextSelector
the selector to consult if no matching log context is found defaultSelector)Construct a new instance. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LogContext | getLogContext()
Implements org. Get the current log context. |
| public void | registerLogContext(ClassLoader
the classloader classLoader, LogContext the log context logContext)Register a class loader with a log context. |
| public boolean | Returns: true if the association exists and was removed, false otherwisethe classloader classLoader, LogContext the log context logContext)Unregister a class loader/log context association. |
| contextMap | back to summary |
|---|---|
| private final ConcurrentMap<ClassLoader, LogContext> contextMap | |
| defaultSelector | back to summary |
|---|---|
| private final LogContextSelector defaultSelector | |
| logContextAction | back to summary |
|---|---|
| private final PrivilegedAction<LogContext> logContextAction | |
| REGISTER_LOG_CONTEXT_PERMISSION | back to summary |
|---|---|
| private static final Permission REGISTER_LOG_CONTEXT_PERMISSION | |
| UNREGISTER_LOG_CONTEXT_PERMISSION | back to summary |
|---|---|
| private static final Permission UNREGISTER_LOG_CONTEXT_PERMISSION | |
| ContextClassLoaderLogContextSelector | back to summary |
|---|---|
| public ContextClassLoaderLogContextSelector(final LogContextSelector defaultSelector) Construct a new instance. If no matching log context is found, the provided default selector is consulted.
| |
| ContextClassLoaderLogContextSelector | back to summary |
|---|---|
| public ContextClassLoaderLogContextSelector() Construct a new instance. If no matching log context is found, the system context is used. | |
| getLogContext | back to summary |
|---|---|
| public LogContext getLogContext() Implements org. Doc from org. Get the current log context.
| |
| registerLogContext | back to summary |
|---|---|
| public void registerLogContext(ClassLoader classLoader, LogContext logContext) throws IllegalArgumentException Register a class loader with a log context. This method requires the
| |
| unregisterLogContext | back to summary |
|---|---|
| public boolean unregisterLogContext(ClassLoader classLoader, LogContext logContext) Unregister a class loader/log context association. This method requires the
| |