Class DefaultEventRegistryDefinitionAutoDeployer
java.lang.Object
com.flowable.platform.common.deployer.CommonAutoDeployer
com.flowable.platform.common.deployer.DefaultEventRegistryDefinitionAutoDeployer
- 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 DefaultEventRegistryDefinitionAutoDeployer extends CommonAutoDeployer implements org.springframework.core.Ordered
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>
autoDeployTenants
static java.lang.String
DEFAULT_DEPLOYMENT_NAME
static int
DEFAULT_ORDER
protected java.lang.String
deploymentName
protected org.flowable.eventregistry.impl.EventRegistryEngineConfiguration
eventRegistryEngineConfiguration
protected int
order
Fields inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
applicationContext, deploymentProperties, deploymentResources
-
Constructor Summary
Constructors Constructor Description DefaultEventRegistryDefinitionAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> eventRegistryResources, org.flowable.eventregistry.impl.EventRegistryEngineConfiguration eventRegistryEngineConfiguration, java.lang.String deploymentName, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)
DefaultEventRegistryDefinitionAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> eventRegistryResources, org.flowable.eventregistry.impl.EventRegistryEngineConfiguration eventRegistryEngineConfiguration, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)
-
Method Summary
Modifier and Type Method Description protected void
deploy(java.util.Collection<org.springframework.core.io.Resource> resources, java.lang.String tenantId)
protected void
deployResourcesInternal(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.LockManager
getLockManager()
Get the lock manager for the current deployer.int
getOrder()
void
setOrder(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_DEPLOYMENT_NAME
public static final java.lang.String DEFAULT_DEPLOYMENT_NAME- See Also:
- Constant Field Values
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
- Constant Field Values
-
eventRegistryEngineConfiguration
protected org.flowable.eventregistry.impl.EventRegistryEngineConfiguration eventRegistryEngineConfiguration -
deploymentName
protected java.lang.String deploymentName -
autoDeployTenants
protected final java.util.Set<java.lang.String> autoDeployTenants -
order
protected int order
-
-
Constructor Details
-
DefaultEventRegistryDefinitionAutoDeployer
public DefaultEventRegistryDefinitionAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> eventRegistryResources, org.flowable.eventregistry.impl.EventRegistryEngineConfiguration eventRegistryEngineConfiguration, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)- Parameters:
eventRegistryResources
- the resources that should be deployedeventRegistryEngineConfiguration
- the engine configurationautoDeployTenants
- the tenants to which the auto deployment should be done (if empty then a single deployment is done without using tenant)
-
DefaultEventRegistryDefinitionAutoDeployer
public DefaultEventRegistryDefinitionAutoDeployer(java.util.Collection<org.springframework.core.io.Resource> eventRegistryResources, org.flowable.eventregistry.impl.EventRegistryEngineConfiguration eventRegistryEngineConfiguration, java.lang.String deploymentName, java.util.Set<java.lang.String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)- Parameters:
eventRegistryResources
- the resources that should be deployedeventRegistryEngineConfiguration
- the engine configurationdeploymentName
- the name of the deploymentautoDeployTenants
- 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:
getOrder
in 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:CommonAutoDeployer
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 classCommonAutoDeployer
- Parameters:
resources
- the resources to be deployed
-
getLockManager
protected org.flowable.common.engine.impl.lock.LockManager getLockManager()Description copied from class:CommonAutoDeployer
Get the lock manager for the current deployer. Used when the strategy has been configured to use lock for deployments.- Specified by:
getLockManager
in classCommonAutoDeployer
- Returns:
- the lock manager
-
deploy
protected void deploy(java.util.Collection<org.springframework.core.io.Resource> resources, java.lang.String tenantId)
-