Using the Service Provider Browser
See Also
The service provider pattern provides
a mechanism for accessing objects in other modules. In the IDE, you have
a browser to inspect the interfaces that
modules in the system expose. Then you can
use the browser to register implementations
of the exposed interfaces.
To use the Service Provider Browser:
- Create a module project.
- In the Projects window, expand the Important Files node.
- Expand the META-INF services node. The
interfaces exposed by the system are displayed.
- To implement an interface, right-click it
and choose Add New Service. Browse to the
implementing class.
When you click OK, the implementing
class is registered in the META-INF services
node and is available to your application.
- See Also
- About NetBeans Platform and Module Development
- About Communicating Between Modules
- About Service Providers
Legal Notices