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 ofAutoDeploymentStrategy
that performs a separate deployment for each set ofResource
s that share the same parent folder. The namehint is used to prefix the names of deployments. If the parent folder for aResource
cannot be determined, the resource's name is used.- Author:
- Tiese Barrell
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEPLOYMENT_MODE
The 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 void
deployResourcesInternal(String deploymentNameHint, Resource[] resources, FormEngine engine)
protected String
getDeploymentMode()
-
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:
getDeploymentMode
in classCommonAutoDeploymentStrategy<FormEngine>
-
deployResourcesInternal
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, FormEngine engine)
- Specified by:
deployResourcesInternal
in classCommonAutoDeploymentStrategy<FormEngine>
-
-