| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.core.invocation.ThreadMessageContext
public final class ThreadMessageContext
Class for tunnelling a WorkContext through the invocation of a user class.
| Method Summary | |
|---|---|
static Message | 
getMessageContext()
Returns the WorkContext for the current thread.  | 
static Message | 
setMessageContext(Message context)
Set the WorkContext for the current thread.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static Message setMessageContext(Message context)
   WorkContext old = PojoWorkContextTunnel.setThreadWorkContext(newContext);
   try {
      ... invoke user code ...
   } finally {
     PojoWorkContextTunnel.setThreadWorkContext(old);
   }
 
context - 
public static Message getMessageContext()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||