org.netbeans.spi.debugger

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.spi.debugger 
org.netbeans.spi.debugger
package The NetBeans Debugger SPI definition defines interface to Debugger Plug-ins. It allows to extend some already existing debugger, or create a new implementation of debugger.

Debugger SPI allows to:
  • create a new instance of session: {@link org.netbeans.spi.debugger.SessionProvider}, {@link org.netbeans.spi.debugger.DelegatingSessionProvider}
  • add support for a new language to some Session: {@link org.netbeans.spi.debugger.DebuggerEngineProvider}, {@link org.netbeans.spi.debugger.DelegatingDebuggerEngineProvider}
  • install new watch evaluation engine: You can register a new evaluator for watches - {@link org.netbeans.spi.debugger.WatchesProvider} and {@link org.netbeans.spi.debugger.WatchImpl}.
  • add a new actions: A support for some new debugger action (like Step Into Action) can be installed to some {@link org.netbeans.api.debugger.DebuggerEngine} - {@link org.netbeans.spi.debugger.ActionsProvider}, {@link org.netbeans.spi.debugger.ActionsProviderSupport} and {@link org.netbeans.spi.debugger.ActionsProviderListener}.

Registration

Debugger Core SPI contains service providers extending basic Debugger Core API model. Each service provider must be registerred in Meta-inf/debugger. Meta-inf/debugger is special folder in module *.jar file.

If you would like to register some implementation(s) of some service to some Debugger Core API interface of type {type name}, you should create file with name {service full class name}in folder Meta-inf/debugger/{type name}.
The file should contain a list of fully-qualified class names, one per line, of classes implementing the service interface and having default public constructor. It's also possible to append a name of a static method followed by paranthesis, which returns the implementation of the service. That method is then called instead of the default constructor. The method can not take any arguments. If there is a need to remove a service that is provided by some other module, append '-hidden' after the class or method name. Space and tab characters surrounding each name, as well as blank lines, are ignored. The comment character is '#' (\u0023); on each line all characters following the first comment character are ignored. The file must be encoded in UTF-8.

Example I:
I would like to register org.netbeans.modules.debugger.jpda.actions.StepAction and org.netbeans.modules.debugger.jpda.actions.StartAction service implementations for JPDA DebuggerEngine. In this case I should create file named org.netbeans.spi.debugger.ActionsProvider in folder Meta-inf/debugger/netbeans-JPDADebuggerEngine/. "netbeans-JPDADebuggerEngine" is a name of JPDA DebuggerEngine, and it can be obtained from DebuggerEngine.getTypeID(). This file should contain two lines:
org.netbeans.modules.debugger.jpda.actions.StepAction
org.netbeans.modules.debugger.jpda.actions.StartAction


Example II:
I would like to remove the default 'type' and 'toString' columns in LocalVariables view and add a 'builtin' column instead. This is supposed to work for ANT debugger. In this case I should create file named org.netbeans.spi.viewmodel.ColumnModel in folder META-INF/debugger/AntSession/LocalsView/. This file should contain three lines, the first two remove columns we do not want to appear for ANT debugger, the third adds ANT-specific column:
org.netbeans.modules.debugger.ui.models.ColumnModels.createLocalsTypeColumn()-hidden
org.netbeans.modules.debugger.ui.models.ColumnModels.createLocalsToStringColumn()-hidden
org.netbeans.modules.ant.debugger.ColumnModels.createBuiltInColumn()


List of all default service providers:

Service provider interface
Should be registerred to:
File names:
{@link org.netbeans.spi.debugger.SessionProvider}
{@link org.netbeans.api.debugger.DebuggerInfo} folder name: Meta-inf/debugger/{DebuggerInfo type name}
file name: org.netbeans.spi.debugger.SessionProvider
{@link org.netbeans.spi.debugger.DelegatingSessionProvider}  {@link org.netbeans.api.debugger.DebuggerInfo} folder name: Meta-inf/debugger/{DebuggerInfo type name}
file name: org.netbeans.spi.debugger.DelegatingSessionProvider
{@link org.netbeans.spi.debugger.DebuggerEngineProvider} {@link org.netbeans.api.debugger.Session}  folder name: Meta-inf/debugger/{Session type name}
file name: org.netbeans.spi.debugger.DebuggerEngineProvider
{@link org.netbeans.spi.debugger.DelegatingDebuggerEngineProvider} {@link org.netbeans.api.debugger.Session} folder name: Meta-inf/debugger/{Session type name}
file name: org.netbeans.spi.debugger.DelegatingDebuggerEngineProvider
{@link org.netbeans.spi.debugger.WatchesProvider}  {@link org.netbeans.api.debugger.DebuggerEngine}  folder name: Meta-inf/debugger/{DebuggerEngine type name}
file name: org.netbeans.spi.debugger.WatchesProvider

{@link org.netbeans.spi.debugger.ActionsProvider}
{@link org.netbeans.api.debugger.DebuggerEngine}
folder name: Meta-inf/debugger/{DebuggerEngine type name}
file name: org.netbeans.spi.debugger.ActionsProvider



Java Source File NameTypeComment
ActionsProvider.javaClass Represents implementation of one or more actions.
ActionsProviderListener.javaInterfaceActionsProvider state listener.
ActionsProviderSupport.javaClass Support for ActionsProvider implementation.
ContextProvider.javaInterface Abstract ancestor of classes providing lookup.
DebuggerEngineProvider.javaClass Creates a new instance of org.netbeans.api.debugger.DebuggerEngine for session.
DelegatingDebuggerEngineProvider.javaClass Delegates support for some language to some existing org.netbeans.api.debugger.DebuggerEngine .
DelegatingSessionProvider.javaClass Delegates org.netbeans.api.debugger.DebuggerInfo support to some some existing org.netbeans.api.debugger.Session .
SessionProvider.javaClass Creates a new instance of org.netbeans.api.debugger.Session for some org.netbeans.api.debugger.DebuggerInfo .
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.