Class DefaultDocumentDefinitionAutoDeployer
- java.lang.Object
-
- com.flowable.platform.common.deployer.CommonAutoDeployer
-
- com.flowable.platform.common.deployer.DefaultDocumentDefinitionAutoDeployer
-
- All Implemented Interfaces:
Lifecycle,Phased,SmartLifecycle
public class DefaultDocumentDefinitionAutoDeployer extends CommonAutoDeployer
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>autoDeployTenantsprotected CoreContentEngineConfigurationApicontentEngineConfigurationstatic StringDEFAULT_DEPLOYMENT_NAMEprotected StringdeploymentNameprotected Function<String,LockManager>lockManagerProvider-
Fields inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
deploymentProperties, deploymentResources, lifeCycleMonitor, logger, running
-
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
-
Constructor Summary
Constructors Constructor Description DefaultDocumentDefinitionAutoDeployer(Collection<Resource> deploymentResources, CoreContentEngineConfigurationApi contentEngineConfiguration, Function<String,LockManager> lockManagerProvider, String deploymentName, Set<String> autoDeployTenants, CommonAutoDeploymentProperties deploymentProperties)DefaultDocumentDefinitionAutoDeployer(Collection<Resource> deploymentResources, CoreContentEngineConfigurationApi contentEngineConfiguration, Function<String,LockManager> lockManagerProvider, Set<String> autoDeployTenants, CommonAutoDeploymentProperties deploymentProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<Resource>collectDeploymentResources(Collection<Resource> resources)protected voiddeploy(Collection<Resource> resources, String tenantId)protected voiddeployResourcesInternal(Collection<Resource> resources)Methods that should be implemented by sub classes to perform the actual deployment.protected LockManagergetLockManager()Get the lock manager for the current deployer.intgetPhase()-
Methods inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, isRunning, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.context.SmartLifecycle
isAutoStartup, stop
-
-
-
-
Field Detail
-
DEFAULT_DEPLOYMENT_NAME
public static final String DEFAULT_DEPLOYMENT_NAME
- See Also:
- Constant Field Values
-
contentEngineConfiguration
protected CoreContentEngineConfigurationApi contentEngineConfiguration
-
lockManagerProvider
protected Function<String,LockManager> lockManagerProvider
-
deploymentName
protected String deploymentName
-
-
Constructor Detail
-
DefaultDocumentDefinitionAutoDeployer
public DefaultDocumentDefinitionAutoDeployer(Collection<Resource> deploymentResources, CoreContentEngineConfigurationApi contentEngineConfiguration, Function<String,LockManager> lockManagerProvider, Set<String> autoDeployTenants, CommonAutoDeploymentProperties deploymentProperties)
-
DefaultDocumentDefinitionAutoDeployer
public DefaultDocumentDefinitionAutoDeployer(Collection<Resource> deploymentResources, CoreContentEngineConfigurationApi contentEngineConfiguration, Function<String,LockManager> lockManagerProvider, String deploymentName, Set<String> autoDeployTenants, CommonAutoDeploymentProperties deploymentProperties)
-
-
Method Detail
-
getPhase
public int getPhase()
- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle- Specified by:
getPhasein classCommonAutoDeployer
-
deployResourcesInternal
protected void deployResourcesInternal(Collection<Resource> resources)
Description copied from class:CommonAutoDeployerMethods 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 classCommonAutoDeployer- Parameters:
resources- the resources to be deployed
-
getLockManager
protected LockManager getLockManager()
Description copied from class:CommonAutoDeployerGet the lock manager for the current deployer. Used when the strategy has been configured to use lock for deployments.- Specified by:
getLockManagerin classCommonAutoDeployer- Returns:
- the lock manager
-
collectDeploymentResources
protected Collection<Resource> collectDeploymentResources(Collection<Resource> resources)
-
deploy
protected void deploy(Collection<Resource> resources, String tenantId)
-
-