Class DefaultDmnDefinitionAutoDeployer
java.lang.Object
com.flowable.platform.common.deployer.CommonAutoDeployer
com.flowable.platform.common.deployer.DefaultDmnDefinitionAutoDeployer
- 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 DefaultDmnDefinitionAutoDeployer extends CommonAutoDeployer implements org.springframework.core.Ordered
- 
Field SummaryFields Modifier and Type Field Description protected java.util.Set<java.lang.String>autoDeployTenantsstatic java.lang.StringDEFAULT_DEPLOYMENT_NAMEstatic intDEFAULT_ORDERprotected java.lang.StringdeploymentNameprotected org.flowable.dmn.engine.DmnEngineConfigurationdmnEngineConfigurationprotected intorderFields inherited from class com.flowable.platform.common.deployer.CommonAutoDeployerapplicationContext, deploymentProperties, deploymentResources
- 
Constructor SummaryConstructors Constructor Description DefaultDmnDefinitionAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> dmnResources, org.flowable.dmn.engine.DmnEngineConfiguration dmnEngineConfiguration, java.lang.String deploymentName, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)DefaultDmnDefinitionAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> dmnResources, org.flowable.dmn.engine.DmnEngineConfiguration dmnEngineConfiguration, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)
- 
Method SummaryModifier 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.CommonAutoDeployerdeployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, onApplicationEvent, setApplicationContext, setDeploymentProperties
- 
Field Details- 
DEFAULT_DEPLOYMENT_NAMEpublic static final java.lang.String DEFAULT_DEPLOYMENT_NAME- See Also:
- Constant Field Values
 
- 
DEFAULT_ORDERpublic static final int DEFAULT_ORDER- See Also:
- Constant Field Values
 
- 
dmnEngineConfigurationprotected org.flowable.dmn.engine.DmnEngineConfiguration dmnEngineConfiguration
- 
deploymentNameprotected java.lang.String deploymentName
- 
autoDeployTenantsprotected final java.util.Set<java.lang.String> autoDeployTenants
- 
orderprotected int order
 
- 
- 
Constructor Details- 
DefaultDmnDefinitionAutoDeployerpublic DefaultDmnDefinitionAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> dmnResources, org.flowable.dmn.engine.DmnEngineConfiguration dmnEngineConfiguration, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)- Parameters:
- dmnResources- the resources that should be deployed
- dmnEngineConfiguration- the engine configuration
- autoDeployTenants- the tenants to which the auto deployment should be done (if empty then a single deployment is done without using tenant)
 
- 
DefaultDmnDefinitionAutoDeployerpublic DefaultDmnDefinitionAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> dmnResources, org.flowable.dmn.engine.DmnEngineConfiguration dmnEngineConfiguration, java.lang.String deploymentName, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)- Parameters:
- dmnResources- the resources that should be deployed
- dmnEngineConfiguration- the engine configuration
- deploymentName- the name of the deployment
- autoDeployTenants- the tenants to which the auto deployment should be done (if empty then a single deployment is done without using tenant)
 
 
- 
- 
Method Details- 
getOrderpublic int getOrder()- Specified by:
- getOrderin interface- org.springframework.core.Ordered
 
- 
setOrderpublic void setOrder(int order)
- 
deployResourcesInternalprotected 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 class- CommonAutoDeployer
- Parameters:
- resources- the resources to be deployed
 
- 
getLockManagerprotected 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 class- CommonAutoDeployer
- Returns:
- the lock manager
 
- 
deployprotected void deploy(java.util.Collection<org.springframework.core.io.Resource> resources, java.lang.String tenantId)
 
-