com.bluemarsh.jswat
Interface Manager

All Superinterfaces:
SessionListener
All Known Implementing Classes:
DefaultManager

public interface Manager
extends SessionListener

The Manager interface defines the API required by all manager objects in JSwat. Managers are used to control a subset of features in JSwat, such as breakpoints, source files, debugging context, etc. This Manager API makes it easy for the Session class to deal with several managers at once, and to handle future Managers.

Try to avoid circular dependencies between Managers when possible. Unpredictable behavior can occur if one manager's init calls on a second manager, which calls on the first manager (which has not completed its initialization).

Version:
1.1 4/22/01
Author:
Nathan Fiedler

Method Summary
 void activate(Session session)
          Called when the Session is about to begin an active debugging session.
 void close(Session session)
          Called when the Session is about to close down.
 void deactivate(Session session)
          Called when the Session is about to end an active debugging session.
 void init(Session session)
          Called after the Session has instantiated this mananger.
 

Method Detail

activate

public void activate(Session session)
Called when the Session is about to begin an active debugging session. That is, JSwat is about to debug a debuggee VM. Managers are not activated in any particular order.
Specified by:
activate in interface SessionListener
Parameters:
session - Session being activated.

close

public void close(Session session)
Called when the Session is about to close down. Managers are not closed in any particular order.
Specified by:
close in interface SessionListener
Parameters:
session - Session being closed.

deactivate

public void deactivate(Session session)
Called when the Session is about to end an active debugging session. That is, JSwat is about to terminate the connection with the debuggee VM. Managers are not deactivated in any particular order.
Specified by:
deactivate in interface SessionListener
Parameters:
session - Session being deactivated.

init

public void init(Session session)
Called after the Session has instantiated this mananger. To avoid problems with circular dependencies between managers, iniitialize data members before calling Session.getManager(). Managers are not initialized in any particular order.
Specified by:
init in interface SessionListener
Parameters:
session - Session initializing this manager.