Interface AutoDeploymentStrategy
-
- All Known Implementing Classes:
AbstractAutoDeploymentStrategy,DefaultAutoDeploymentStrategy,FailOnNoProcessAutoDeploymentStrategy,NeverFailAutoDeploymentStrategy,ResourceParentFolderAutoDeploymentStrategy,SingleResourceAutoDeploymentStrategy
@Internal public interface AutoDeploymentStrategyStrategy interface for implementations of automatically deploying resources. A strategy may perform any amount of deployments for theResources it is provided with.A strategy is capable of handling deployments corresponding to a certain indicated deployment mode. This applicability is verified using the
handlesMode(String)method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeployResources(java.lang.String deploymentNameHint, org.springframework.core.io.Resource[] resources, org.activiti.engine.RepositoryService repositoryService)Performs deployment for the provided resources, using the provided name as a hint and the providedRepositoryServiceto perform deployment(s).booleanhandlesMode(java.lang.String mode)Determines whether the strategy handles deployments for the provided deployment mode.
-
-
-
Method Detail
-
handlesMode
boolean handlesMode(java.lang.String mode)
Determines whether the strategy handles deployments for the provided deployment mode.- Parameters:
mode- the mode to determine handling for- Returns:
- true if the strategy handles the mode; false otherwise
-
deployResources
void deployResources(java.lang.String deploymentNameHint, org.springframework.core.io.Resource[] resources, org.activiti.engine.RepositoryService repositoryService)Performs deployment for the provided resources, using the provided name as a hint and the providedRepositoryServiceto perform deployment(s).- Parameters:
deploymentNameHint- the hint for the name of deployment(s) performedresources- the resources to be deployedrepositoryService- the repository service to use for deployment(s)
-
-