KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mountainminds > eclemma > core > ISessionListener


1 /*******************************************************************************
2  * Copyright (c) 2006 Mountainminds GmbH & Co. KG
3  * This software is provided under the terms of the Eclipse Public License v1.0
4  * See http://www.eclipse.org/legal/epl-v10.html.
5  *
6  * $Id: ISessionListener.java 11 2006-08-28 20:06:31Z mho $
7  ******************************************************************************/

8 package com.mountainminds.eclemma.core;
9
10
11 /**
12  * Callback interface for changes of the session manager. This interface is
13  * intended to be implemented by clients that want to get notifications.
14  *
15  * @see ISessionManager#addSessionListener(ISessionListener)
16  * @see ISessionManager#removeSessionListener(ISessionListener)
17  *
18  * @author Marc R. Hoffmann
19  * @version $Revision: 11 $
20  */

21 public interface ISessionListener {
22
23   /**
24    * Called when a session has been added.
25    *
26    * @param addedSession
27    * added session
28    */

29   public void sessionAdded(ICoverageSession addedSession);
30
31   /**
32    * Called when a session has been removed.
33    *
34    * @param removedSession
35    * removes session
36    */

37   public void sessionRemoved(ICoverageSession removedSession);
38
39   /**
40    * Called when a new session has been activated or the last session has been
41    * removed. In this case <code>null</code> is passed as a parameter.
42    *
43    * @param session
44    * activated session or <code>null</code>
45    */

46   public void sessionActivated(ICoverageSession session);
47
48 }
49
Popular Tags