org.apache.bsf.debug.jsdi
Interface JsCallbacks

All Superinterfaces:
java.rmi.Remote, RemoteService
All Known Implementing Classes:
Callbacks, JsCallbacksStub

public interface JsCallbacks
extends RemoteService

This interface is the callback for the JavaScript debugger. IMPORTANT: JASON: it is likely to be modified when moving to the JDI-like event listening framework. IMPORTANT TWO: Missing support for watching objects.


Method Summary
 void handleBreakpointHit(JsContext cx)
          Callback when a breakpoint is hit in the debuggee.
 void handleEngineStopped(JsContext cx)
          Callback when an engine stops after a stop-request.
 void handleExceptionThrown(JsContext cx, java.lang.Object exception)
          Callback when an exception is thrown in the debuggee.
 void handleSteppingDone(JsContext cx)
          Callback when a step-request has finished.
 boolean poll()
          Allows the server to poll the connection.
 
Methods inherited from interface org.apache.bsf.debug.util.RemoteService
addListener, completeFuture, createFuture, removeListener, suspendFuture
 

Method Detail

poll

public boolean poll()
             throws java.rmi.RemoteException
Allows the server to poll the connection.

java.rmi.RemoteException

handleBreakpointHit

public void handleBreakpointHit(JsContext cx)
                         throws java.rmi.RemoteException
Callback when a breakpoint is hit in the debuggee. The debuggee is suspended until this call returns.

java.rmi.RemoteException

handleEngineStopped

public void handleEngineStopped(JsContext cx)
                         throws java.rmi.RemoteException
Callback when an engine stops after a stop-request. The debuggee is suspended until this call returns.

java.rmi.RemoteException

handleExceptionThrown

public void handleExceptionThrown(JsContext cx,
                                  java.lang.Object exception)
                           throws java.rmi.RemoteException
Callback when an exception is thrown in the debuggee. The debuggee is suspended until this call returns.

java.rmi.RemoteException

handleSteppingDone

public void handleSteppingDone(JsContext cx)
                        throws java.rmi.RemoteException
Callback when a step-request has finished. The debuggee is suspended until this call returns.

java.rmi.RemoteException