Class ResourceParentFolderAutoDeploymentStrategy
- java.lang.Object
-
- org.activiti.spring.autodeployment.AbstractAutoDeploymentStrategy
-
- org.activiti.spring.autodeployment.ResourceParentFolderAutoDeploymentStrategy
-
- All Implemented Interfaces:
AutoDeploymentStrategy
public class ResourceParentFolderAutoDeploymentStrategy extends AbstractAutoDeploymentStrategy
Implementation ofAutoDeploymentStrategythat performs a separate deployment for each set ofResources that share the same parent folder. The namehint is used to prefix the names of deployments. If the parent folder for aResourcecannot be determined, the resource's name is used.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEPLOYMENT_MODEThe deployment mode this strategy handles.-
Fields inherited from class org.activiti.spring.autodeployment.AbstractAutoDeploymentStrategy
LOGGER
-
-
Constructor Summary
Constructors Constructor Description ResourceParentFolderAutoDeploymentStrategy(ApplicationUpgradeContextService applicationUpgradeContextService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeployResources(String deploymentNameHint, org.springframework.core.io.Resource[] resources, RepositoryService repositoryService)Performs deployment for the provided resources, using the provided name as a hint and the providedRepositoryServiceto perform deployment(s).protected StringgetDeploymentMode()Gets the deployment mode this strategy handles.-
Methods inherited from class org.activiti.spring.autodeployment.AbstractAutoDeploymentStrategy
determineResourceName, handlesMode, loadApplicationUpgradeContext, validateModel
-
-
-
-
Field Detail
-
DEPLOYMENT_MODE
public static final String DEPLOYMENT_MODE
The deployment mode this strategy handles.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceParentFolderAutoDeploymentStrategy
public ResourceParentFolderAutoDeploymentStrategy(ApplicationUpgradeContextService applicationUpgradeContextService)
-
-
Method Detail
-
getDeploymentMode
protected String getDeploymentMode()
Description copied from class:AbstractAutoDeploymentStrategyGets the deployment mode this strategy handles.- Specified by:
getDeploymentModein classAbstractAutoDeploymentStrategy- Returns:
- the name of the deployment mode
-
deployResources
public void deployResources(String deploymentNameHint, org.springframework.core.io.Resource[] resources, RepositoryService repositoryService)
Description copied from interface:AutoDeploymentStrategyPerforms 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)
-
-