Class ResourceParentFolderAutoDeploymentStrategy
java.lang.Object
org.flowable.common.spring.CommonAutoDeploymentStrategy<WorkObjectEngine>
com.flowable.workobject.spring.autodeployment.AbstractWorkObjectAutoDeploymentStrategy
com.flowable.workobject.spring.autodeployment.ResourceParentFolderAutoDeploymentStrategy
- All Implemented Interfaces:
org.flowable.common.spring.AutoDeploymentStrategy<WorkObjectEngine>
public class ResourceParentFolderAutoDeploymentStrategy extends AbstractWorkObjectAutoDeploymentStrategy
Implementation of AutoDeploymentStrategy that performs a separate deployment for each set of
Resource
s that share the same parent folder.
The name hint is used to prefix the names of deployments. If the parent folder for a Resource
cannot be determined, the resource's name is used.- Author:
- Tiese Barrell
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEPLOYMENT_MODE
The deployment mode this strategy handles. -
Constructor Summary
Constructors Constructor Description ResourceParentFolderAutoDeploymentStrategy()
ResourceParentFolderAutoDeploymentStrategy(org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)
-
Method Summary
Modifier and Type Method Description protected void
deployResourcesInternal(java.lang.String deploymentNameHint, org.springframework.core.io.Resource[] resources, WorkObjectEngine engine)
protected java.lang.String
getDeploymentMode()
Methods inherited from class com.flowable.workobject.spring.autodeployment.AbstractWorkObjectAutoDeploymentStrategy
addResource, addResource, getLockManager
Methods inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, handlesMode, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties
-
Field Details
-
DEPLOYMENT_MODE
public static final java.lang.String DEPLOYMENT_MODEThe deployment mode this strategy handles.- See Also:
- Constant Field Values
-
-
Constructor Details
-
ResourceParentFolderAutoDeploymentStrategy
public ResourceParentFolderAutoDeploymentStrategy() -
ResourceParentFolderAutoDeploymentStrategy
public ResourceParentFolderAutoDeploymentStrategy(org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)
-
-
Method Details
-
getDeploymentMode
protected java.lang.String getDeploymentMode()- Specified by:
getDeploymentMode
in classorg.flowable.common.spring.CommonAutoDeploymentStrategy<WorkObjectEngine>
-
deployResourcesInternal
protected void deployResourcesInternal(java.lang.String deploymentNameHint, org.springframework.core.io.Resource[] resources, WorkObjectEngine engine)- Specified by:
deployResourcesInternal
in classorg.flowable.common.spring.CommonAutoDeploymentStrategy<WorkObjectEngine>
-