public abstract class AbstractInstallOrUninstallAction extends AbstractBean implements InstallAction, UninstallAction
rollback
method does nothing by default. Override it in your action to perform an actual rollback.Constructor and Description |
---|
AbstractInstallOrUninstallAction() |
Modifier and Type | Method and Description |
---|---|
void |
init(Context context)
This method is called after the properties have been set
|
boolean |
isRollbackSupported()
This method is called by the framework to determine if the action supports a rollback.
|
void |
rollback(InstallerContext context)
This method is called by the framework to perform a rollback of the
install method. |
executeActionListAsync, executeActionListSync, getTextOverrideValue, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, replaceWithTextOverride, rollbackActionList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
install
uninstall
public void rollback(InstallerContext context)
InstallAction
install
method.
This method is only called if the install
method 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.rollback
in interface InstallAction
context
- the context of the installation.public void init(Context context)
Action
public boolean isRollbackSupported()
InstallAction
isRollbackSupported
in interface InstallAction
true
if a rollback is supported.