//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010 huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/willow
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : willow@lists.sourceforge.net 
 */
//----------------------------END  LICENSE----------------------------

package org.huihoo.workflow.server;

import java.util.EventListener;

/** 
 * Implementations of this interface receive notifications about
 * changes to the servlet context of the workflow application they are
 * part of.
 * To receive notification events, the implementation class
 * must be configured in the deployment descriptor for the workflow
 * application.
 * @see WorkflowContextEvent
 */

public interface WorkflowContextListener extends EventListener
{
	/**
	 ** Notification that the workflow application initialization
	 ** process is starting.
	 ** All ServletContextListeners are notified of context
	 ** initialization before any filter or servlet in the workflow
	 ** application is initialized.
	 */

	public void contextInitialized(WorkflowContextEvent wce);

	/**
	 ** Notification that the servlet context is about to be shut down.
	 ** All servlets and filters have been destroy()ed before any
	 ** ServletContextListeners are notified of context
	 ** destruction.
	 */
	public void contextDestroyed(WorkflowContextEvent wce);
}