Java Doc for DebuggerManager.java in  » IDE-Netbeans » ant » org » netbeans » api » debugger » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » ant » org.netbeans.api.debugger 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.api.debugger.DebuggerManager

DebuggerManager
final public class DebuggerManager implements ContextProvider(Code)
The root class of Debugger APIs. DebuggerManager manages list of org.netbeans.api.debugger.Session s, org.netbeans.api.debugger.Breakpoint s and org.netbeans.api.debugger.Watch es.


Description
Functionality Start & finish debugging: DebuggerManager manages a process of starting a new debugging ( DebuggerManager.startDebugging ). It cooperates with all installed org.netbeans.spi.debugger.DebuggerEngineProvider s to create a new org.netbeans.api.debugger.Session (or Sessions) and a new org.netbeans.api.debugger.DebuggerEngine (or Engines). It supports kill all sessions too ( DebuggerManager.finishAllSessions ).

Sessions management: DebuggerManager keeps list of all org.netbeans.api.debugger.Session s ( DebuggerManager.getSessions ), and manages current session ( DebuggerManager.getCurrentSession , DebuggerManager.setCurrentSession ).

Engine management: DebuggerManager provides current engine ( DebuggerManager.getCurrentEngine ). Current engine is derivated from current session. So, debuggerManager.getCurrentEngine () == debuggerManager. getCurrentSession.getCurrentEngine () should be always true.

Breakpoints management: DebuggerManager keeps list of all shared breakpoints ( DebuggerManager.getBreakpoints ). Breakpoint can be added ( DebuggerManager.addBreakpoint ) and removed ( DebuggerManager.removeBreakpoint ).

Watches management: DebuggerManager keeps list of all shared watches ( DebuggerManager.getWatches ). Watch can be created & added ( DebuggerManager.createWatch ).

Support for listening: DebuggerManager propagates all changes to two type of listeners - general java.beans.PropertyChangeListener and specific org.netbeans.api.debugger.DebuggerManagerListener .
Clinents / Providers DebuggerCore module should be the only one provider of this abstract class. This class should be called from debugger plug-in modules and from debugger UI modules.
Lifecycle The only one instance of DebuggerManager should exist, and it should be created in DebuggerManager.getDebuggerManager method.
Evolution No method should be removed from this class, but some functionality can be added.

author:
   Jan Jancura



Field Summary
final public static  StringPROP_BREAKPOINTS
     Name of property for the set of breakpoints in the system.
final public static  StringPROP_BREAKPOINTS_INIT
     Name of property for the set of breakpoints in the system.
final public static  StringPROP_CURRENT_ENGINE
     Name of property for current debugger engine.
final public static  StringPROP_CURRENT_SESSION
     Name of property for current debugger session.
final public static  StringPROP_DEBUGGER_ENGINES
     Name of property for set of running debugger engines.
final public static  StringPROP_SESSIONS
     Name of property for set of running debugger sessions.
final public static  StringPROP_WATCHES
     Name of property for the set of watches in the system.
final public static  StringPROP_WATCHES_INIT
     Name of property for the set of watches in the system.


Method Summary
public  voidaddBreakpoint(Breakpoint breakpoint)
     Adds a new breakpoint.
public  voidaddDebuggerListener(DebuggerManagerListener l)
     This listener notificates about changes of breakpoints, watches and threads.
public  voidaddDebuggerListener(String propertyName, DebuggerManagerListener l)
     Add a debuggerManager listener to changes of watches and breakpoints.
 voidaddEngine(DebuggerEngine engine)
    
public  WatchcreateWatch(String expr)
     Creates a watch with its expression set to an initial value. Also allows creation of a hidden watch (not presented to the user), for example for internal use in the editor to obtain values of variables under the mouse pointer.
Parameters:
  expr - expression to watch for (the format is the responsibility of the debugger plug-in implementation, but it is typically a variable name).
public  voidfinishAllSessions()
     Kills all org.netbeans.api.debugger.Session s and org.netbeans.api.debugger.DebuggerEngine s.
public synchronized  ActionsManagergetActionsManager()
    
public  Breakpoint[]getBreakpoints()
     Gets all registered breakpoints.
public  DebuggerEnginegetCurrentEngine()
     Returns current debugger engine or null.
public  SessiongetCurrentSession()
     Returns current debugger session or null.
public  DebuggerEngine[]getDebuggerEngines()
     Returns set of running debugger engines.
public static synchronized  DebuggerManagergetDebuggerManager()
     Returns default instance of DebuggerManager.
public  Session[]getSessions()
     Returns set of running debugger sessions.
public  Watch[]getWatches()
     Gets all shared watches in the system.
public static  ContextProviderjoin(ContextProvider cp1, ContextProvider cp2)
     Join two lookups together.
public  List<? extends T>lookup(String folder, Class<T> service)
     Returns list of services of given type from given folder.
public  TlookupFirst(String folder, Class<T> service)
     Returns one service of given type from given folder.
public  voidremoveAllWatches()
     Removes all watches from the system.
public  voidremoveBreakpoint(Breakpoint breakpoint)
     Removes breakpoint.
public  voidremoveDebuggerListener(DebuggerManagerListener l)
     Removes debugger listener.
public  voidremoveDebuggerListener(String propertyName, DebuggerManagerListener l)
     Remove a debuggerManager listener to changes of watches and breakpoints.
 voidremoveEngine(DebuggerEngine engine)
    
 voidremoveWatch(Watch w)
     Removes watch.
public  voidsetCurrentSession(Session session)
     Sets current debugger session.
public  DebuggerEngine[]startDebugging(DebuggerInfo info)
     Start a new debugging for given org.netbeans.api.debugger.DebuggerInfo .

Field Detail
PROP_BREAKPOINTS
final public static String PROP_BREAKPOINTS(Code)
Name of property for the set of breakpoints in the system.



PROP_BREAKPOINTS_INIT
final public static String PROP_BREAKPOINTS_INIT(Code)
Name of property for the set of breakpoints in the system.



PROP_CURRENT_ENGINE
final public static String PROP_CURRENT_ENGINE(Code)
Name of property for current debugger engine.



PROP_CURRENT_SESSION
final public static String PROP_CURRENT_SESSION(Code)
Name of property for current debugger session.



PROP_DEBUGGER_ENGINES
final public static String PROP_DEBUGGER_ENGINES(Code)
Name of property for set of running debugger engines.



PROP_SESSIONS
final public static String PROP_SESSIONS(Code)
Name of property for set of running debugger sessions.



PROP_WATCHES
final public static String PROP_WATCHES(Code)
Name of property for the set of watches in the system.



PROP_WATCHES_INIT
final public static String PROP_WATCHES_INIT(Code)
Name of property for the set of watches in the system.





Method Detail
addBreakpoint
public void addBreakpoint(Breakpoint breakpoint)(Code)
Adds a new breakpoint.
Parameters:
  breakpoint - a new breakpoint



addDebuggerListener
public void addDebuggerListener(DebuggerManagerListener l)(Code)
This listener notificates about changes of breakpoints, watches and threads.
Parameters:
  l - listener object.



addDebuggerListener
public void addDebuggerListener(String propertyName, DebuggerManagerListener l)(Code)
Add a debuggerManager listener to changes of watches and breakpoints.
Parameters:
  propertyName - a name of property to listen on
Parameters:
  l - the debuggerManager listener to add



addEngine
void addEngine(DebuggerEngine engine)(Code)



createWatch
public Watch createWatch(String expr)(Code)
Creates a watch with its expression set to an initial value. Also allows creation of a hidden watch (not presented to the user), for example for internal use in the editor to obtain values of variables under the mouse pointer.
Parameters:
  expr - expression to watch for (the format is the responsibility of the debugger plug-in implementation, but it is typically a variable name). the new watch



finishAllSessions
public void finishAllSessions()(Code)
Kills all org.netbeans.api.debugger.Session s and org.netbeans.api.debugger.DebuggerEngine s.



getActionsManager
public synchronized ActionsManager getActionsManager()(Code)



getBreakpoints
public Breakpoint[] getBreakpoints()(Code)
Gets all registered breakpoints. all breakpoints



getCurrentEngine
public DebuggerEngine getCurrentEngine()(Code)
Returns current debugger engine or null. current debugger engine or null



getCurrentSession
public Session getCurrentSession()(Code)
Returns current debugger session or null. current debugger session or null



getDebuggerEngines
public DebuggerEngine[] getDebuggerEngines()(Code)
Returns set of running debugger engines. set of running debugger engines



getDebuggerManager
public static synchronized DebuggerManager getDebuggerManager()(Code)
Returns default instance of DebuggerManager. default instance of DebuggerManager



getSessions
public Session[] getSessions()(Code)
Returns set of running debugger sessions. set of running debugger sessions



getWatches
public Watch[] getWatches()(Code)
Gets all shared watches in the system. all watches



join
public static ContextProvider join(ContextProvider cp1, ContextProvider cp2)(Code)
Join two lookups together. The result will merge the lookups. The result of its DebuggerManager.lookup method will additionally implement Customizer .
Parameters:
  cp1 - first lookup
Parameters:
  cp2 - second lookup a merger of the two
since:
   org.netbeans.api.debugger/1 1.13



lookup
public List<? extends T> lookup(String folder, Class<T> service)(Code)
Returns list of services of given type from given folder.
Parameters:
  service - a type of service to look for list of services of given type



lookupFirst
public T lookupFirst(String folder, Class<T> service)(Code)
Returns one service of given type from given folder.
Parameters:
  service - a type of service to look for ne service of given type



removeAllWatches
public void removeAllWatches()(Code)
Removes all watches from the system.



removeBreakpoint
public void removeBreakpoint(Breakpoint breakpoint)(Code)
Removes breakpoint.
Parameters:
  breakpoint - a breakpoint to be removed



removeDebuggerListener
public void removeDebuggerListener(DebuggerManagerListener l)(Code)
Removes debugger listener.
Parameters:
  l - listener object.



removeDebuggerListener
public void removeDebuggerListener(String propertyName, DebuggerManagerListener l)(Code)
Remove a debuggerManager listener to changes of watches and breakpoints.
Parameters:
  propertyName - a name of property to listen on
Parameters:
  l - the debuggerManager listener to remove



removeEngine
void removeEngine(DebuggerEngine engine)(Code)



removeWatch
void removeWatch(Watch w)(Code)
Removes watch.
Parameters:
  w - watch to be removed



setCurrentSession
public void setCurrentSession(Session session)(Code)
Sets current debugger session.
Parameters:
  session - a session to be current



startDebugging
public DebuggerEngine[] startDebugging(DebuggerInfo info)(Code)
Start a new debugging for given org.netbeans.api.debugger.DebuggerInfo . DebuggerInfo provides information needed to start new debugging. DebuggerManager finds all org.netbeans.spi.debugger.SessionProvider s and org.netbeans.spi.debugger.DelegatingSessionProvider s installed for given DebuggerInfo, and creates a new Session (s). After that it looks for all org.netbeans.spi.debugger.DebuggerEngineProvider s and org.netbeans.spi.debugger.DelegatingDebuggerEngineProvider s installed for Session, and crates a new DebuggerEngine (s).
If the implementation of ACTION_START providers support cancellation (implements Cancellable ), this startup sequence can be canceled via Thread.interrupt() while startDebugging() method is waiting for the action providers.
Parameters:
  info - debugger startup info DebuggerEngines started for given info



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.