/*
 * Created on 2004-6-28
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.huihoo.willow.naming;



/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class ContextFactory
{
//------------------------------------------------------- Static Variables

 /**
	* The singleton <code>WillowContext</code> instance for this JVM.
	*/
 private static WillowContext localContext = null;

 // --------------------------------------------------------- Public Methods

 /**
	* Return the singleton <code>WillowContext</code> instance for this JVM.
	*/
 public static WillowContext getWillowContext()
 {
	 return (localContext);
 }

 /**
	* Set the singleton <code>WillowContext</code> instance for this JVM.  This
	* method must <strong>only</strong> be called from a constructor of
	* the (singleton) <code>WillowContext</code> instance that is created for
	* this execution of Willow.
	*
	* @param theLocalContext The new singleton instance
	*/
 public static void setWillowContext(WillowContext theLocalContext)
 {
		 localContext = theLocalContext;
 }

}
