org.apache.bsf.debug.jsdi

Interface JsCallbacks

All Superinterfaces:
Remote, RemoteService
Known Implementing Classes:
Callbacks, DebuggerStub, 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, 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 Details

handleBreakpointHit

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

handleEngineStopped

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

handleExceptionThrown

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

handleSteppingDone

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

poll

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