Class AbstractPostDeploymentProcessor
java.lang.Object
org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
org.craftercms.deployer.impl.processors.AbstractPostDeploymentProcessor
- All Implemented Interfaces:
DeploymentProcessor,InitializableByConfigBean,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
FileOutputProcessor,NotificationProcessor
Base class for
DeploymentProcessors that are executed during the post
deployment phase, which is the phase that happens after all the files from the change set have been processed.- Author:
- avasquez
-
Field Summary
Fields inherited from class org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
alwaysRun, env, excludeFiles, includeFiles, JUMPING_TO_PARAM_NAME, jumpTo, label, name, siteName, targetId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChangeSetdoExecute(Deployment deployment, ChangeSet filteredChangeSet, ChangeSet originalChangeSet) Triggers the execution of the processor for the givenDeploymentandChangeSetprotected abstract ChangeSetdoPostProcess(Deployment deployment, ChangeSet filteredChangeSet, ChangeSet originalChangeSet) booleanReturns true if this processor runs after the deployment has finalized.protected booleanshouldExecute(Deployment deployment, ChangeSet filteredChangeSet) Indicates if the processor should be executed for the givenDeploymentandChangeSetMethods inherited from class org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
destroy, doDestroy, doInit, execute, getDeploymentParam, getFilteredChangeSet, init, isJumpToActive, setBeanName, setEnv, setSiteName, setTargetId, shouldIncludeFile, startJumpTo, supportsMode
-
Constructor Details
-
AbstractPostDeploymentProcessor
public AbstractPostDeploymentProcessor()
-
-
Method Details
-
isPostDeployment
public boolean isPostDeployment()Description copied from interface:DeploymentProcessorReturns true if this processor runs after the deployment has finalized.- Specified by:
isPostDeploymentin interfaceDeploymentProcessor- Overrides:
isPostDeploymentin classAbstractDeploymentProcessor
-
doExecute
protected ChangeSet doExecute(Deployment deployment, ChangeSet filteredChangeSet, ChangeSet originalChangeSet) throws Exception Description copied from class:AbstractDeploymentProcessorTriggers the execution of the processor for the givenDeploymentandChangeSet- Specified by:
doExecutein classAbstractDeploymentProcessor- Parameters:
deployment- the current deploymentfilteredChangeSet- the filtered change set (as returned byAbstractDeploymentProcessor.getFilteredChangeSet(ChangeSet))originalChangeSet- the original change set (as returned by the previous processors in the pipeline)- Returns:
- a new
ChangeSetor null - Throws:
Exception- if there is any error processing theChangeSet
-
shouldExecute
Description copied from class:AbstractDeploymentProcessorIndicates if the processor should be executed for the givenDeploymentandChangeSet- Specified by:
shouldExecutein classAbstractDeploymentProcessor- Parameters:
deployment- theDeploymentto checkfilteredChangeSet- theChangeSetto check- Returns:
- true if the processor should be executed
-
doPostProcess
protected abstract ChangeSet doPostProcess(Deployment deployment, ChangeSet filteredChangeSet, ChangeSet originalChangeSet) throws DeployerException - Throws:
DeployerException
-