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 DataObjectEnginedataObjectEngineprotected CommonAutoDeploymentPropertiesdeploymentPropertiesprotected booleanforceOverwriteprotected ObjectlifeCycleMonitorprotected org.slf4j.Loggerloggerprotected Collection<Resource>masterDataDocumentResourcesprotected booleanrunning-
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 StringdetermineLockName()protected StringdetermineResourceName(Resource resource)intgetPhase()protected voidimportMasterDataDocuments()booleanisRunning()voidstart()protected voidstartAutoImport()voidstop()-
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:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
startAutoImport
protected void startAutoImport()
-
determineLockName
protected String determineLockName()
-
importMasterDataDocuments
protected void importMasterDataDocuments()
-
-