finalize
public void finalize()
getLangFromFilename
public String getLangFromFilename(String fileName)
throws RemoteException
Determine the language of a script file by looking at the file
extension.
- getLangFromFilename in interface BSFDebugManager
- the scripting language the file is in if the file extension
is known to me (must have been registered via
registerScriptingEngine).
isLanguageRegistered
public boolean isLanguageRegistered(String lang)
Determine whether a language is registered.
- isLanguageRegistered in interface BSFDebugManager
lang
- string identifying a language
registerDebugger
public void registerDebugger(String lang,
BSFDebugger debugger)
throws RemoteException
Register a debugger for a scripting engine.
- registerDebugger in interface BSFDebugManager
lang
- string identifying language
registerManager
public void registerManager(BSFManager mger)
removeAllBreakpoints
public void removeAllBreakpoints()
revokedNotify
public void revokedNotify(RemoteService service)
Callback from the socket/stub layer.
A stub for a remote debugger is being revoked due
to a lost connection.
Since we support only one debuggers from only one
JVM, there is only one connection and therefore we
can drop all debuggers...
and then drop all breakpoints.
ATTENTION:
Breakpoints shall not be dropped if we extend this
implementation to multiple debuggers through multiple
socket connections.
- revokedNotify in interface RemoteServiceListener
supportBreakpointAtOffset
public boolean supportBreakpointAtOffset(String lang)
throws RemoteException
Allows a debugger to ask if the engine for a given language
will support either line or offset breakpoints.
Note: this will most likely provoke the loading of the engine.
- supportBreakpointAtOffset in interface BSFDebugManager
terminate
public void terminate()
terminateEngineNotify
public void terminateEngineNotify(BSFManager mger,
BSFEngine eng,
String lang)
terminateManagerNotify
public void terminateManagerNotify(BSFManager mger)