Class ResourceParentFolderAutoDeploymentStrategy

  • All Implemented Interfaces:
    AutoDeploymentStrategy

    public class ResourceParentFolderAutoDeploymentStrategy
    extends AbstractAutoDeploymentStrategy
    Implementation of AutoDeploymentStrategy that performs a separate deployment for each set of Resources that share the same parent folder. The namehint is used to prefix the names of deployments. If the parent folder for a Resource cannot be determined, the resource's name is used.
    • Field Detail

      • DEPLOYMENT_MODE

        public static final java.lang.String DEPLOYMENT_MODE
        The deployment mode this strategy handles.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResourceParentFolderAutoDeploymentStrategy

        public ResourceParentFolderAutoDeploymentStrategy​(org.activiti.core.common.spring.project.ProjectModelService projectModelService)
    • Method Detail

      • deployResources

        public void deployResources​(java.lang.String deploymentNameHint,
                                    org.springframework.core.io.Resource[] resources,
                                    org.activiti.engine.RepositoryService repositoryService)
        Description copied from interface: AutoDeploymentStrategy
        Performs deployment for the provided resources, using the provided name as a hint and the provided RepositoryService to perform deployment(s).
        Parameters:
        deploymentNameHint - the hint for the name of deployment(s) performed
        resources - the resources to be deployed
        repositoryService - the repository service to use for deployment(s)