Class DefaultAppAutoDeployer
java.lang.Object
com.flowable.platform.common.deployer.CommonAutoDeployer
com.flowable.platform.common.deployer.DefaultAppAutoDeployer
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>,org.springframework.core.Ordered
public class DefaultAppAutoDeployer extends CommonAutoDeployer implements org.springframework.core.Ordered
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.app.api.AppEngineConfigurationApiappEngineConfigurationprotected java.util.Set<java.lang.String>autoDeployTenantsstatic intDEFAULT_ORDERprotected java.util.function.Function<java.lang.String,org.flowable.common.engine.impl.lock.LockManager>lockManagerProviderprotected intorderFields inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
applicationContext, deploymentProperties, deploymentResources -
Constructor Summary
Constructors Constructor Description DefaultAppAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> deploymentResources, org.flowable.app.api.AppEngineConfigurationApi appEngineConfiguration, java.util.function.Function<java.lang.String,org.flowable.common.engine.impl.lock.LockManager> lockManagerProvider, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties) -
Method Summary
Modifier and Type Method Description protected voiddeploy(java.util.Collection<org.springframework.core.io.Resource> resources, java.lang.String tenantId)protected voiddeployResourcesInternal(java.util.Collection<org.springframework.core.io.Resource> resources)Methods that should be implemented by sub classes to perform the actual deployment.protected org.flowable.common.engine.impl.lock.LockManagergetLockManager()Get the lock manager for the current deployer.intgetOrder()voidsetOrder(int order)Methods inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, onApplicationEvent, setApplicationContext, setDeploymentProperties
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
- Constant Field Values
-
appEngineConfiguration
protected org.flowable.app.api.AppEngineConfigurationApi appEngineConfiguration -
lockManagerProvider
protected java.util.function.Function<java.lang.String,org.flowable.common.engine.impl.lock.LockManager> lockManagerProvider -
order
protected int order -
autoDeployTenants
protected final java.util.Set<java.lang.String> autoDeployTenants
-
-
Constructor Details
-
DefaultAppAutoDeployer
public DefaultAppAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> deploymentResources, org.flowable.app.api.AppEngineConfigurationApi appEngineConfiguration, java.util.function.Function<java.lang.String,org.flowable.common.engine.impl.lock.LockManager> lockManagerProvider, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)- Parameters:
deploymentResources- the resources that should be deployedappEngineConfiguration- the engine configurationautoDeployTenants- the tenants to which the auto deployment should be done (if empty then a single deployment is done without using tenant)
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
deployResourcesInternal
protected void deployResourcesInternal(java.util.Collection<org.springframework.core.io.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 org.flowable.common.engine.impl.lock.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
-
deploy
protected void deploy(java.util.Collection<org.springframework.core.io.Resource> resources, java.lang.String tenantId)
-