Class DefaultAutoDeploymentStrategy
java.lang.Object
org.flowable.common.spring.CommonAutoDeploymentStrategy<CmmnEngine>
org.flowable.cmmn.spring.autodeployment.AbstractCmmnAutoDeploymentStrategy
org.flowable.cmmn.spring.autodeployment.DefaultAutoDeploymentStrategy
- All Implemented Interfaces:
AutoDeploymentStrategy<CmmnEngine>
Default implementation of
AutoDeploymentStrategy
that groups all Resource
s into a single deployment.
This implementation is equivalent to the previously used implementation.- Author:
- Tiese Barrell, Joram Barrez
-
Field Summary
FieldsFields inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deploymentProperties, logger
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAutoDeploymentStrategy
(CommonAutoDeploymentProperties deploymentProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
deployResourcesInternal
(String deploymentNameHint, Resource[] resources, CmmnEngine engine) Methods that should be implemented by sub classes to perform the actual deployment.protected String
Gets the deployment mode this strategy handles.Methods inherited from class org.flowable.cmmn.spring.autodeployment.AbstractCmmnAutoDeploymentStrategy
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
The deployment mode this strategy handles.- See Also:
-
-
Constructor Details
-
DefaultAutoDeploymentStrategy
public DefaultAutoDeploymentStrategy() -
DefaultAutoDeploymentStrategy
-
-
Method Details
-
getDeploymentMode
Description copied from class:CommonAutoDeploymentStrategy
Gets the deployment mode this strategy handles.- Specified by:
getDeploymentMode
in classCommonAutoDeploymentStrategy<CmmnEngine>
- Returns:
- the name of the deployment mode
-
deployResourcesInternal
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, CmmnEngine engine) Description copied from class:CommonAutoDeploymentStrategy
Methods 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:
deployResourcesInternal
in classCommonAutoDeploymentStrategy<CmmnEngine>
- Parameters:
deploymentNameHint
- the hint for the name of deployment(s) performedresources
- the resources to be deployedengine
- the engine to use for deployment(s)
-