com.install4j.api.actions (install4j API)
Description: declaration: package: com.install4j.api.actions

# 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;

- Related Packages
  Package
  Description
  com.install4j.api
  This package contains general utility classes for the install4j API.
- Class
  Description
  AbstractInstallAction
  Abstract base class for install actions.
  AbstractInstallOrUninstallAction
  Abstract base class for actions that can be used for installation or uninstallation.
  AbstractUninstallAction
  Abstract base class for uninstall actions.
  Action
  The base interface for all actions.
  AutoUninstallAction
  If you write an installation action that wants to be automatically invoked in the uninstaller to revert its changes, you can additionally implement this interface.
  InstallAction
  All install actions must implement this interface.
  UninstallAction
  All uninstall actions must implement this interface.