org.apache.bsf.dbline
Class Callbacks

java.lang.Object
  extended by org.apache.bsf.debug.util.Skeleton
      extended by org.apache.bsf.dbline.Callbacks
All Implemented Interfaces:
java.rmi.Remote, BSFDebugger, 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(java.lang.String lang, java.lang.Object engine)
          An language engine has been created.
 void deletedEngine(java.lang.Object engine)
          An language engine has been terminated.
 void disconnect()
          The connection to the debug manager has been revoked.
 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 class org.apache.bsf.debug.util.Skeleton
addListener, allocOid, completeFuture, createFuture, equals, getTid, getUid, hasNoUid, removeListener, suspendFuture
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.bsf.debug.util.RemoteService
addListener, completeFuture, createFuture, removeListener, suspendFuture
 
Methods inherited from interface org.apache.bsf.debug.util.RemoteService
addListener, completeFuture, createFuture, removeListener, suspendFuture
 

Method Detail

poll

public boolean poll()
Description copied from interface: JsCallbacks
Allows the server to poll the connection.

Specified by:
poll in interface JsCallbacks

createdEngine

public void createdEngine(java.lang.String lang,
                          java.lang.Object engine)
                   throws java.rmi.RemoteException
Description copied from interface: BSFDebugger
An language engine has been created.

Specified by:
createdEngine in interface BSFDebugger
Throws:
java.rmi.RemoteException

deletedEngine

public void deletedEngine(java.lang.Object engine)
                   throws java.rmi.RemoteException
Description copied from interface: BSFDebugger
An language engine has been terminated.

Specified by:
deletedEngine in interface BSFDebugger
Throws:
java.rmi.RemoteException

disconnect

public void disconnect()
                throws java.rmi.RemoteException
Description copied from interface: BSFDebugger
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
Throws:
java.rmi.RemoteException

handleBreakpointHit

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

Specified by:
handleBreakpointHit in interface JsCallbacks
Throws:
java.rmi.RemoteException

handleEngineStopped

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

Specified by:
handleEngineStopped in interface JsCallbacks
Throws:
java.rmi.RemoteException

handleExceptionThrown

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

Specified by:
handleExceptionThrown in interface JsCallbacks
Throws:
java.rmi.RemoteException

handleSteppingDone

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

Specified by:
handleSteppingDone in interface JsCallbacks
Throws:
java.rmi.RemoteException