com.ibm.websphere.fabric.da.context
Class ContextLocator

java.lang.Object
  extended by com.ibm.websphere.fabric.da.context.ContextLocator

public final class ContextLocator
extends java.lang.Object

Since:
WBSF 6.1.0
Author:
dilumr@us.ibm.com

Nested Class Summary
static class ContextLocator.ContextLocatorFailure
          Thrown under system failure conditions (for example, the context identifier is known, but some machinery like the server-link fails).
 
Method Summary
 Context getCurrentContext()
          Gets a copy of the current context.
static ContextLocator getInstance()
          Returns a (cacheable) context locator instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContextLocator getInstance()
Returns a (cacheable) context locator instance.

Returns:
a non-null context locator.

getCurrentContext

public Context getCurrentContext()
                          throws ContextLocator.ContextLocatorFailure
Gets a copy of the current context. Any changes made to the context have no effect on the distributed context.

Returns:
the current context or null if the no context has been established for this execution branch.
Throws:
ContextLocator.ContextLocatorFailure


Copyright © 2002-2009 IBM. All Rights Reserved.