|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.vishia.util.ThreadContext
public class ThreadContext
| Field Summary | |
|---|---|
private static java.lang.ThreadLocal<ThreadContext> |
currentThreadContext
The thread-specific ThreadContext. |
java.lang.StringBuffer |
excMsg
String Buffer to store a thread local exception message for throw operations. |
| Constructor Summary | |
|---|---|
ThreadContext()
|
|
| Method Summary | |
|---|---|
static ThreadContext |
getCurrent()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.lang.ThreadLocal<ThreadContext> currentThreadContext
public java.lang.StringBuffer excMsg
ThreadContext threadContext = ThreadContext.getCurrent();
threadContext->excMsg.setLength(0);
threadContext->excMsg.append("The message text");
throw new RuntimeException(threadContext->excMsg);
| Constructor Detail |
|---|
public ThreadContext()
| Method Detail |
|---|
public static ThreadContext getCurrent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||