Class DataInitializerManager
java.lang.Object
com.broadleafcommerce.adminuser.data.DataInitializerManager
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class DataInitializerManager
extends Object
implements org.springframework.context.SmartLifecycle
Responsible for injecting the data initializers and actually invoking their
DataInitializer.initialize() methods.-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionDataInitializerManager(List<DataInitializer> dataInitializers, com.broadleafcommerce.common.messaging.PersistenceProducer persistenceProducer) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Constructor Details
-
DataInitializerManager
public DataInitializerManager(List<DataInitializer> dataInitializers, com.broadleafcommerce.common.messaging.PersistenceProducer persistenceProducer)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
initializeAllInThread
public void initializeAllInThread() -
waitUntilPersistenceChannelHasSubscribers
- Throws:
InterruptedException
-