Class AbstractLifecycleHook
java.lang.Object
org.craftercms.deployer.impl.lifecycle.AbstractLifecycleHook
- All Implemented Interfaces:
TargetLifecycleHook,InitializableByConfigBean
- Direct Known Subclasses:
AbstractIndexAwareLifecycleHook,ClearS3BucketLifecycleHook,CreateCloudFormationLifecycleHook,DeleteCloudFormationLifecycleHook,DeleteLocalRepoFolderLifecycleHook,DuplicateProcessedCommitsHook,DuplicateS3LifecycleHook,WaitTillCloudFormationStackUsableLifecycleHook
Base implementation of
TargetLifecycleHook- Since:
- 3.1.8
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected booleanprotected org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONFIG_KEY_DISABLED
- See Also:
-
logger
protected org.slf4j.Logger logger -
disabled
protected boolean disabled
-
-
Constructor Details
-
AbstractLifecycleHook
public AbstractLifecycleHook()
-
-
Method Details
-
init
public void init(org.apache.commons.configuration2.Configuration config) throws org.craftercms.commons.config.ConfigurationException, DeployerException Description copied from interface:InitializableByConfigBeanInitializes the bean using the specified configuration.- Specified by:
initin interfaceInitializableByConfigBean- Parameters:
config- the bean's configuration- Throws:
org.craftercms.commons.config.ConfigurationException- if there's configuration related exceptionDeployerException- if there's a general exception on init
-
doInit
protected abstract void doInit(org.apache.commons.configuration2.Configuration config) throws org.craftercms.commons.config.ConfigurationException, DeployerException - Throws:
org.craftercms.commons.config.ConfigurationExceptionDeployerException
-
execute
Description copied from interface:TargetLifecycleHookExecute the hook.- Specified by:
executein interfaceTargetLifecycleHook- Parameters:
target- the target associated to the hook- Throws:
DeployerException- if there's an exception on execution
-
doExecute
- Throws:
DeployerException
-