Class MasterDataInstanceAutoImporter
- java.lang.Object
-
- com.flowable.dataobject.engine.impl.master.MasterDataInstanceAutoImporter
-
- All Implemented Interfaces:
Lifecycle
,Phased
,SmartLifecycle
public class MasterDataInstanceAutoImporter extends Object implements SmartLifecycle
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected DataObjectEngine
dataObjectEngine
protected CommonAutoDeploymentProperties
deploymentProperties
protected boolean
forceOverwrite
protected Object
lifeCycleMonitor
protected org.slf4j.Logger
logger
protected Collection<Resource>
masterDataDocumentResources
protected boolean
running
-
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
-
Constructor Summary
Constructors Constructor Description MasterDataInstanceAutoImporter(DataObjectEngine dataObjectEngine, CommonAutoDeploymentProperties deploymentProperties, Collection<Resource> masterDataDocumentResources, boolean forceOverwrite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
determineLockName()
protected String
determineResourceName(Resource resource)
int
getPhase()
protected void
importMasterDataDocuments()
boolean
isRunning()
void
start()
protected void
startAutoImport()
void
stop()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.context.SmartLifecycle
isAutoStartup, stop
-
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
dataObjectEngine
protected final DataObjectEngine dataObjectEngine
-
deploymentProperties
protected final CommonAutoDeploymentProperties deploymentProperties
-
masterDataDocumentResources
protected final Collection<Resource> masterDataDocumentResources
-
forceOverwrite
protected final boolean forceOverwrite
-
lifeCycleMonitor
protected final Object lifeCycleMonitor
-
running
protected boolean running
-
-
Constructor Detail
-
MasterDataInstanceAutoImporter
public MasterDataInstanceAutoImporter(DataObjectEngine dataObjectEngine, CommonAutoDeploymentProperties deploymentProperties, Collection<Resource> masterDataDocumentResources, boolean forceOverwrite)
-
-
Method Detail
-
getPhase
public int getPhase()
- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
-
startAutoImport
protected void startAutoImport()
-
determineLockName
protected String determineLockName()
-
importMasterDataDocuments
protected void importMasterDataDocuments()
-
-