@ConsumerType public interface InstallHook
InstallContext.Phase.END
phase.
The hook jars need to be placed in the "META-INF/vault/hooks" directory
and are executed in alphabetical sequence for each installation phase.
A hook can throw a PackageException
to abort the current phase,
but this has currently only an effect in the
InstallContext.Phase.PREPARE
and InstallContext.Phase.INSTALLED
phase. If a hook fails, the current phase is aborted and all hooks
(also the failing one) are called again with the respective "fail" phase.Modifier and Type | Method and Description |
---|---|
void |
execute(InstallContext context)
Executes hook specific code.
|
void execute(InstallContext context) throws PackageException
context
- the installation contextPackageException
- if the hook desires to abort the current phase.Copyright © 2010 - 2020 Adobe. All Rights Reserved