//----------------------------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 are notified of changes to the 
* list of active sessions in a workflow application.
* To receive notification events, the implementation class
* must be configured in the deployment descriptor for the workflow application.
* @see WorkflowSessionEvent
*/

public interface WorkflowSessionListener extends EventListener
{

	/** 
	* Notification that a session was created.
	* @param se the notification event
	*/
	public void sessionCreated(WorkflowSession se);

	/** 
	* Notification that a session is about to be invalidated.
	* @param se the notification event
	*/
	public void sessionDestroyed(WorkflowSession se);

}
