Interface TargetLifecycleHook

All Superinterfaces:
InitializableByConfigBean
All Known Implementing Classes:
AbstractIndexAwareLifecycleHook, AbstractLifecycleHook, ClearS3BucketLifecycleHook, CreateCloudFormationLifecycleHook, CreateIndexLifecycleHook, DeleteCloudFormationLifecycleHook, DeleteIndexLifecycleHook, DeleteLocalRepoFolderLifecycleHook, WaitTillCloudFormationStackUsableLifecycleHook

public interface TargetLifecycleHook extends InitializableByConfigBean
A hook executed during a lifecycle phase of a target. Current valid lifecycle phases:
  • Create: when the create target API is called
  • Init: after a create or after the config is loaded
  • Delete: when the delete target API is called
Author:
avasquez
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(Target target)
    Execute the hook.

    Methods inherited from interface org.craftercms.deployer.utils.beans.InitializableByConfigBean

    init
  • Method Details

    • execute

      void execute(Target target) throws DeployerException
      Execute the hook.
      Parameters:
      target - the target associated to the hook
      Throws:
      DeployerException - if there's an exception on execution