org.apache.xbean.kernel
Class ServiceContextThreadLocal

java.lang.Object
  extended byorg.apache.xbean.kernel.ServiceContextThreadLocal

public final class ServiceContextThreadLocal
extends java.lang.Object

ServiceContextThreadLocal carries the ServiceContext on the Thread during service construction and destruction.

Since:
2.0
Version:
$Id$
Author:
Dain Sundstrom

Method Summary
static ServiceContext get()
          Gets the ServiceContext associated with the current thread.
static void set(ServiceContext serviceContext)
          Assocates the specified ServiceContext with the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static ServiceContext get()
Gets the ServiceContext associated with the current thread.

Returns:
the ServiceContext associated with the current thread

set

public static void set(ServiceContext serviceContext)
Assocates the specified ServiceContext with the current thread.

Parameters:
serviceContext - the service context to associate with the current thread


Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.