From 31d794be59cb2d1bf264df79f471b0c8d5f5a457 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:40:26 +0000 Subject: Moving to site trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882841 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/core/invocation/ThreadMessageContext.html | 256 +++++++++++++++++++++ 1 file changed, 256 insertions(+) create mode 100644 site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/core/invocation/ThreadMessageContext.html (limited to 'site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/core/invocation/ThreadMessageContext.html') diff --git a/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/core/invocation/ThreadMessageContext.html b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/core/invocation/ThreadMessageContext.html new file mode 100644 index 0000000000..6c61591d30 --- /dev/null +++ b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/core/invocation/ThreadMessageContext.html @@ -0,0 +1,256 @@ + + + + + + +ThreadMessageContext + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.tuscany.sca.core.invocation +
+Class ThreadMessageContext

+
+java.lang.Object
+  extended by org.apache.tuscany.sca.core.invocation.ThreadMessageContext
+
+
+
+
public final class ThreadMessageContext
extends java.lang.Object
+ + +

+Class for tunnelling a WorkContext through the invocation of a user class. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+static MessagegetMessageContext() + +
+          Returns the WorkContext for the current thread.
+static MessagesetMessageContext(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
+ +

+setMessageContext

+
+public static Message setMessageContext(Message context)
+
+
Set the WorkContext for the current thread. + The current work context is returned and must be restored after the invocation is complete. + Typical usage would be: +
+   WorkContext old = PojoWorkContextTunnel.setThreadWorkContext(newContext);
+   try {
+      ... invoke user code ...
+   } finally {
+     PojoWorkContextTunnel.setThreadWorkContext(old);
+   }
+ 
+

+

+
Parameters:
context - +
Returns:
the current work context for the thread; this must be restored after the invocation is made
+
+
+
+ +

+getMessageContext

+
+public static Message getMessageContext()
+
+
Returns the WorkContext for the current thread. +

+

+ +
Returns:
the WorkContext for the current thread
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3