|
JBoss Log Manager 1.4.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.logmanager.ThreadLocalLogContextSelector
public final class ThreadLocalLogContextSelector
A log context selector which stores the chosen log context in a thread-local.
| Constructor Summary | |
|---|---|
ThreadLocalLogContextSelector(LogContextSelector delegate)
Construct a new instance. |
|
ThreadLocalLogContextSelector(Object securityKey,
LogContextSelector delegate)
Construct a new instance. |
|
| Method Summary | |
|---|---|
LogContext |
getAndSet(Object securityKey,
LogContext newValue)
Get and set the log context. |
LogContext |
getLogContext()
Get the current log context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadLocalLogContextSelector(LogContextSelector delegate)
delegate - the selector to delegate to if no context is chosen
public ThreadLocalLogContextSelector(Object securityKey,
LogContextSelector delegate)
securityKey - the security key required to push or pop a log context.delegate - the selector to delegate to if no context is chosen| Method Detail |
|---|
public LogContext getLogContext()
LogContextSelector
getLogContext in interface LogContextSelector
public LogContext getAndSet(Object securityKey,
LogContext newValue)
securityKey - the security key to check (ignored if none was set on construction)newValue - the new log context value, or null to clear
null if none was set
|
JBoss Log Manager 1.4.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||