public abstract class CommonAutoDeployer extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Modifier and Type | Field and Description |
---|---|
protected org.flowable.common.spring.CommonAutoDeploymentProperties |
deploymentProperties |
protected Collection<org.springframework.core.io.Resource> |
deploymentResources |
Constructor and Description |
---|
CommonAutoDeployer(Collection<org.springframework.core.io.Resource> deploymentResources) |
CommonAutoDeployer(Collection<org.springframework.core.io.Resource> deploymentResources,
org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
deployResourcesInternal(Collection<org.springframework.core.io.Resource> resources)
Methods that should be implemented by sub classes to perform the actual deployment.
|
protected String |
determineLockName(String deploymentNameHint) |
protected String |
determineResourceName(org.springframework.core.io.Resource resource)
Determines the name to be used for the provided resource.
|
Duration |
getDeploymentLockWaitTime() |
org.flowable.common.spring.CommonAutoDeploymentProperties |
getDeploymentProperties() |
protected abstract org.flowable.common.engine.impl.lock.LockManager |
getLockManager()
Get the lock manager for the current deployer.
|
String |
getLockName() |
boolean |
isThrowExceptionOnDeploymentFailure() |
boolean |
isUseLockForDeployments() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setDeploymentProperties(org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties) |
protected org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties
protected final Collection<org.springframework.core.io.Resource> deploymentResources
public CommonAutoDeployer(Collection<org.springframework.core.io.Resource> deploymentResources)
public CommonAutoDeployer(Collection<org.springframework.core.io.Resource> deploymentResources, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
protected abstract void deployResourcesInternal(Collection<org.springframework.core.io.Resource> resources)
resources
- the resources to be deployedprotected abstract org.flowable.common.engine.impl.lock.LockManager getLockManager()
protected String determineResourceName(org.springframework.core.io.Resource resource)
resource
- the resource to get the name forpublic org.flowable.common.spring.CommonAutoDeploymentProperties getDeploymentProperties()
public void setDeploymentProperties(org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties)
public boolean isUseLockForDeployments()
public Duration getDeploymentLockWaitTime()
public boolean isThrowExceptionOnDeploymentFailure()
public String getLockName()
Copyright © 2019. All rights reserved.