- To influence the lifecycle of a module, implement a module installer.
- Module System API
- ModuleInstal class
- validate():
- This method is called before a module is installed or loaded.
- Load sequences, such as the verification of a module license, are set here. Should the sequence not succeed and the module not be loaded, throw an IllegalStateException method. This exception prevents loading or installing the module
- restored():
- This method is called when an installed module is loaded. Here, actions required to initialize the module are called.
- uninstalled():
- When the module is removed from the application, this method is called.
- closing():
- Before a module is ended, this method is called. Here, you also test whether the module is ready to be removed. Only once this is true for all the modules in the application can the application itself shut down. You can, for example, show the user a dialog to confirm whether the application should readlly be closed.
- close():
- If all modules are ready to end, this method is called. Here, you call the actions for the successful verification of the module in question.
26.7.10
Lifecycle of a NetBeans Module
Labels:
module,
NetBeans,
NetBeans Platform
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment