org.apache.bsf.dbline

Class Callbacks

Implemented Interfaces:
BSFDebugger, Remote, JsCallbacks, RemoteService

public class Callbacks
extends Skeleton
implements BSFDebugger, JsCallbacks

This object is the remote object that will be passed to the remote debug manager as both the BSFDebugger and the JavaScript-specific callback object. Note: there is no obligation that both be implemented by the same object.

Method Summary

void
createdEngine(String lang, Object engine)
An language engine has been created.
void
deletedEngine(Object engine)
An language engine has been terminated.
void
disconnect()
The connection to the debug manager has been revoked.
void
handleBreakpointHit(JsContext cx)
void
handleEngineStopped(JsContext cx)
void
handleExceptionThrown(JsContext cx, Object exception)
void
handleSteppingDone(JsContext cx)
boolean
poll()

Methods inherited from class org.apache.bsf.debug.util.Skeleton

addListener, allocOid, completeFuture, createFuture, equals, getTid, getUid, hasNoUid, removeListener, suspendFuture

Method Details

createdEngine

public void createdEngine(String lang,
                          Object engine)
            throws RemoteException
An language engine has been created.
Specified by:
createdEngine in interface BSFDebugger

deletedEngine

public void deletedEngine(Object engine)
            throws RemoteException
An language engine has been terminated.
Specified by:
deletedEngine in interface BSFDebugger

disconnect

public void disconnect()
            throws RemoteException
The connection to the debug manager has been revoked. This implies no more connection should be kept to any engine.
Specified by:
disconnect in interface BSFDebugger

handleBreakpointHit

public void handleBreakpointHit(JsContext cx)
            throws RemoteException
Specified by:
handleBreakpointHit in interface JsCallbacks

handleEngineStopped

public void handleEngineStopped(JsContext cx)
            throws RemoteException
Specified by:
handleEngineStopped in interface JsCallbacks

handleExceptionThrown

public void handleExceptionThrown(JsContext cx,
                                  Object exception)
            throws RemoteException
Specified by:
handleExceptionThrown in interface JsCallbacks

handleSteppingDone

public void handleSteppingDone(JsContext cx)
            throws RemoteException
Specified by:
handleSteppingDone in interface JsCallbacks

poll

public boolean poll()
Specified by:
poll in interface JsCallbacks