Package com.install4j.api.actions


package com.install4j.api.actions
This package contains the interfaces and abstract base classes for actions.

See the API overview for general remarks on how to use the install4j API.

The Action interface is a marker interface that indicates that a bean is an action. The concrete interfaces are InstallAction and UninstallAction. AutoUninstallAction is implemented by install actions that wish to automatically be invoked during the uninstallation in order to revert their changes.

When you develop your own actions, it is recommended that you extend one of the abstract base classes in this package rather than implement the interfaces themselves.

Actions that run the elevated helper process - either because the bean info requires elevation or the user configured it in the IDE - must not declare non-serializable fields. If such fields are required for some purpose at runtime, declare them as transient, for example

 private transient Process process;
 
  • Class
    Description
    Abstract base class for install actions.
    Abstract base class for actions that can be used for installation or uninstallation.
    Abstract base class for uninstall actions.
    The base interface for all actions.
    If you write an install action that wants to be automatically invoked in the uninstaller to revert its changes, you can additionally implement this interface.
    All install actions must implement this interface.
    All uninstall actions must implement this interface.