Package org.craftercms.deployer.api
Interface DeploymentProcessor
- All Superinterfaces:
InitializableByConfigBean
- All Known Implementing Classes:
AbstractDeploymentProcessor,AbstractMainDeploymentProcessor,AbstractPostDeploymentProcessor,AbstractRemoteGitRepoAwareProcessor,AbstractS3Processor,AbstractSearchIndexingProcessor,CloudFrontInvalidationProcessor,CommandLineProcessor,DelayProcessor,FileBasedDeploymentEventProcessor,FileOutputProcessor,FindAndReplaceProcessor,GitDiffProcessor,GitPullProcessor,GitPushProcessor,GitUpdateCommitIdProcessor,HttpMethodCallProcessor,NotificationProcessor,OpenSearchIndexingProcessor,S3DeploymentEventsProcessor,S3SyncProcessor,ScriptProcessor
Represents a single deployment processor.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys the processor, closing and releasing any used resources.voidexecute(Deployment deployment) Executes the processorbooleanReturns true if this processor runs after the deployment has finalized.booleansupportsMode(Deployment.Mode mode) Indicates if the processor should be included in the given deployment modeMethods inherited from interface org.craftercms.deployer.utils.beans.InitializableByConfigBean
init
-
Method Details
-
isPostDeployment
boolean isPostDeployment()Returns true if this processor runs after the deployment has finalized. -
destroy
Destroys the processor, closing and releasing any used resources.- Throws:
DeployerException- if an error occurs
-
execute
Executes the processor- Parameters:
deployment- the current deployment info
-
supportsMode
Indicates if the processor should be included in the given deployment mode- Parameters:
mode- the deployment mode to check- Returns:
- true if the processor should be included
-