Class ResourceParentFolderAutoDeploymentStrategy
- java.lang.Object
-
- org.flowable.common.spring.CommonAutoDeploymentStrategy<FormEngine>
-
- com.flowable.form.spring.autodeployment.AbstractFormAutoDeploymentStrategy
-
- com.flowable.form.spring.autodeployment.ResourceParentFolderAutoDeploymentStrategy
-
- All Implemented Interfaces:
AutoDeploymentStrategy<FormEngine>
public class ResourceParentFolderAutoDeploymentStrategy extends AbstractFormAutoDeploymentStrategy
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.- Author:
- Tiese Barrell
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEPLOYMENT_MODEThe deployment mode this strategy handles.-
Fields inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deploymentProperties, logger
-
-
Constructor Summary
Constructors Constructor Description ResourceParentFolderAutoDeploymentStrategy()ResourceParentFolderAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeployResourcesInternal(String deploymentNameHint, Resource[] resources, FormEngine engine)protected StringgetDeploymentMode()-
Methods inherited from class com.flowable.form.spring.autodeployment.AbstractFormAutoDeploymentStrategy
addResource, addResource, getLockManager
-
Methods inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, handlesMode, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties
-
-
-
-
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()
-
ResourceParentFolderAutoDeploymentStrategy
public ResourceParentFolderAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties)
-
-
Method Detail
-
getDeploymentMode
protected String getDeploymentMode()
- Specified by:
getDeploymentModein classCommonAutoDeploymentStrategy<FormEngine>
-
deployResourcesInternal
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, FormEngine engine)
- Specified by:
deployResourcesInternalin classCommonAutoDeploymentStrategy<FormEngine>
-
-