magoffin.matt.ma2.util
Class BizContextUtil

java.lang.Object
  extended by magoffin.matt.ma2.util.BizContextUtil

public class BizContextUtil
extends java.lang.Object

Utility API for dealing with BizContext instances.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Constructor Summary
BizContextUtil()
           
 
Method Summary
static void attachBizContext(BizContext context)
          Set a BizContext for the current thread.
static BizContext getBizContext()
          Get the BizContext previously set via attachBizContext(BizContext).
static void removeBizContext()
          Remove a BizContext from the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BizContextUtil

public BizContextUtil()
Method Detail

attachBizContext

public static void attachBizContext(BizContext context)
Set a BizContext for the current thread.

Parameters:
context - the context

getBizContext

public static BizContext getBizContext()
Get the BizContext previously set via attachBizContext(BizContext).

Returns:
a BizContext, or null

removeBizContext

public static void removeBizContext()
Remove a BizContext from the current thread.