The Add New Friend Module dialog box lets a module with an API in public packages provide access only to certain "friend" modules. This is possible if the module declares public packages together with a list of code base names of "friend" modules that can access them. Type the code name base of the "friend" modules in the Add New Friend dialog box. When you click OK, the IDE adds entries to the Manifest file as follows:
OpenIDE-Module-Friends: org.foo, org.boo
Only enumerated modules can access the public packages; access from others is forbidden.
Related Topics
Developing Applications with NetBeans IDE,
Developing Applications with NetBeans IDE,
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |