Package org.flowable.spring.configurator
Class ResourceParentFolderAutoDeploymentStrategy
java.lang.Object
org.flowable.common.spring.CommonAutoDeploymentStrategy<ProcessEngine>
org.flowable.spring.configurator.AbstractProcessAutoDeploymentStrategy
org.flowable.spring.configurator.ResourceParentFolderAutoDeploymentStrategy
- All Implemented Interfaces:
AutoDeploymentStrategy<ProcessEngine>
public class ResourceParentFolderAutoDeploymentStrategy
extends AbstractProcessAutoDeploymentStrategy
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.- Author:
- Tiese Barrell, Joram Barrez
-
Field Summary
FieldsFields inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deploymentProperties, logger -
Constructor Summary
ConstructorsConstructorDescriptionResourceParentFolderAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeployResourcesInternal(String deploymentNameHint, Resource[] resources, ProcessEngine engine) Methods that should be implemented by sub classes to perform the actual deployment.protected StringGets the deployment mode this strategy handles.Methods inherited from class org.flowable.spring.configurator.AbstractProcessAutoDeploymentStrategy
addResource, addResource, getLockManagerMethods inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, handlesMode, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties
-
Field Details
-
DEPLOYMENT_MODE
The deployment mode this strategy handles.- See Also:
-
-
Constructor Details
-
ResourceParentFolderAutoDeploymentStrategy
public ResourceParentFolderAutoDeploymentStrategy() -
ResourceParentFolderAutoDeploymentStrategy
public ResourceParentFolderAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties)
-
-
Method Details
-
getDeploymentMode
Description copied from class:CommonAutoDeploymentStrategyGets the deployment mode this strategy handles.- Specified by:
getDeploymentModein classCommonAutoDeploymentStrategy<ProcessEngine>- Returns:
- the name of the deployment mode
-
deployResourcesInternal
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, ProcessEngine engine) Description copied from class:CommonAutoDeploymentStrategyMethods that should be implemented by sub classes to perform the actual deployment. If use lock for deployments is used than this methods is called with an already acquired lock.- Specified by:
deployResourcesInternalin classCommonAutoDeploymentStrategy<ProcessEngine>- Parameters:
deploymentNameHint- the hint for the name of deployment(s) performedresources- the resources to be deployedengine- the engine to use for deployment(s)
-