Provides hooks for a custom module that may be inserted into NetBeans.
If needed this class should be extended by the main class of a module.
Simple modules will likely not need a main class--just a few entries in the manifest file.
Even modules with a main class need not do anything in it that is already covered by manifest entries;
only additional special functionality need be handled here.
Specify this class in the manifest file with OpenIDE-Module-Install .
Modules wishing to keep state associated with the installation of the module
may do so by implementing not only this class but also
java.io.Externalizable .
In this case, they are responsible for reading and writing their own state
properly (probably using
java.io.ObjectOutput.writeObject and
java.io.ObjectInput.readObject ).
Note that state which is logically connected to the user's configuration of the module on
a possibly project-specific basis should not be stored this way, but rather
using a system option. |