Package com.install4j.api.actions
Class AbstractInstallAction
java.lang.Object
com.install4j.api.beans.AbstractBean
com.install4j.api.actions.AbstractInstallAction
- All Implemented Interfaces:
Action,InstallAction,Bean,Serializable
Abstract base class for install actions.
The
rollback method does nothing by default. Override it in your action to perform an actual rollback.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called after the properties have been setbooleanThis method is called by the framework to determine if the action supports a rollback.voidrollback(InstallerContext context) This method is called by the framework to perform a rollback of theinstallmethod.Methods inherited from class com.install4j.api.beans.AbstractBean
executeActionListAsync, executeActionListSync, getTextOverrideValue, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, rollbackActionListMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.install4j.api.actions.InstallAction
install
-
Constructor Details
-
AbstractInstallAction
public AbstractInstallAction()
-
-
Method Details
-
rollback
Description copied from interface:InstallActionThis method is called by the framework to perform a rollback of theinstallmethod. This method is only called if theinstallmethod has already been called and the installation is canceled by the user or if the installation fails. If this action is executed before a rollback barrier that has already been passed successfully, the rollback will not be performed for this action. The "Installation screen" is the only default rollback barrier in install4j.- Specified by:
rollbackin interfaceInstallAction- Parameters:
context- the context of the installation.
-
init
Description copied from interface:ActionThis method is called after the properties have been set -
isRollbackSupported
public boolean isRollbackSupported()Description copied from interface:InstallActionThis method is called by the framework to determine if the action supports a rollback.- Specified by:
isRollbackSupportedin interfaceInstallAction- Returns:
trueif a rollback is supported.
-