public final class DebuggerEngine extends Object implements ContextProvider
Session
s, in one or more languages.
It provides root of threads hierarchy (call stacks, locals)
and manages debugger actions.
Description | |
Functionality |
Support for actions:
DebuggerEngine manages list of actions (DebuggerEngine.getActionsManager() ).
Debugger action (implemented by
ActionsProvider ) can be registerred to
DebuggerEngine during a start of debugger. See
ActionsProvider .
ActionsManager can be used to call some debugger action
(ActionsManager.doAction(java.lang.Object) ) and to distinguish availability of action
(ActionsManager.isEnabled(java.lang.Object) ).
Example how to call Kill Action on this engine:
engine.getActionsManager ().doAction (ActionsManager.ACTION_KILL); Support for aditional services: DebuggerEngine is final class. That is why the standard method how to extend its functionality is using lookup methods ( DebuggerEngine.lookup and
DebuggerEngine.lookupFirst(java.lang.String, java.lang.Class<T>) ).
There are two ways how to register some service provider for some
type of DebuggerEngine:
Support for listening: DebuggerEngine propagates all changes to two type of listeners - general PropertyChangeListener and specific
ActionsManagerListener .
|
Clinents / Providers |
This class is final, so it does not have any external provider.
Debugger Plug-ins and UI modules are clients of this class.
|
Lifecycle |
A new instance(s) of DebuggerEngine class are created in Debugger Core
module only, during the process of starting of debugging (see
DebuggerManager.startDebugging(org.netbeans.api.debugger.DebuggerInfo) .
DebuggerEngine is removed automatically from DebuggerManager when the
the last action is (ActionsManager.ACTION_KILL ).
|
Evolution | No method should be removed from this class, but some functionality can be added in future. |
Modifier and Type | Class and Description |
---|---|
class |
DebuggerEngine.Destructor
This class notifies about DebuggerEngine remove from the system, and
about changes in language support.
|
Modifier and Type | Method and Description |
---|---|
ActionsManager |
getActionsManager() |
<T> List<? extends T> |
lookup(String folder,
Class<T> service)
Returns list of services of given type from given folder.
|
<T> T |
lookupFirst(String folder,
Class<T> service)
Returns one service of given type from given folder.
|
public <T> List<? extends T> lookup(String folder, Class<T> service)
lookup
in interface ContextProvider
service
- a type of service to look forfolder
- a folder name or nullpublic <T> T lookupFirst(String folder, Class<T> service)
lookupFirst
in interface ContextProvider
service
- a type of service to look forfolder
- a folder name or nullpublic ActionsManager getActionsManager()