Class MasterDataInstanceAutoImporter
- java.lang.Object
-
- com.flowable.dataobject.engine.impl.master.MasterDataInstanceAutoImporter
-
- 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 MasterDataInstanceAutoImporter extends java.lang.Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered, org.springframework.context.ApplicationContextAware
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContext
applicationContext
protected DataObjectEngine
dataObjectEngine
static int
DEFAULT_ORDER
protected org.flowable.common.spring.CommonAutoDeploymentProperties
deploymentProperties
protected boolean
forceOverwrite
protected org.slf4j.Logger
logger
protected java.util.Collection<org.springframework.core.io.Resource>
masterDataDocumentResources
protected int
order
-
Constructor Summary
Constructors Constructor Description MasterDataInstanceAutoImporter(DataObjectEngine dataObjectEngine, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties, java.util.Collection<org.springframework.core.io.Resource> masterDataDocumentResources, boolean forceOverwrite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
determineLockName()
protected java.lang.String
determineResourceName(org.springframework.core.io.Resource resource)
int
getOrder()
protected void
importMasterDataDocuments()
void
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setOrder(int order)
-
-
-
Field Detail
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER
- See Also:
- Constant Field Values
-
order
protected int order
-
logger
protected final org.slf4j.Logger logger
-
dataObjectEngine
protected final DataObjectEngine dataObjectEngine
-
deploymentProperties
protected final org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties
-
masterDataDocumentResources
protected final java.util.Collection<org.springframework.core.io.Resource> masterDataDocumentResources
-
forceOverwrite
protected final boolean forceOverwrite
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Detail
-
MasterDataInstanceAutoImporter
public MasterDataInstanceAutoImporter(DataObjectEngine dataObjectEngine, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties, java.util.Collection<org.springframework.core.io.Resource> masterDataDocumentResources, boolean forceOverwrite)
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
determineLockName
protected java.lang.String determineLockName()
-
importMasterDataDocuments
protected void importMasterDataDocuments()
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
determineResourceName
protected java.lang.String determineResourceName(org.springframework.core.io.Resource resource)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
-