Package de.terrestris.shoguncore.init
Class ContentInitializer
- java.lang.Object
-
- de.terrestris.shoguncore.init.ContentInitializer
-
public class ContentInitializer extends java.lang.ObjectClass to initialize an initial set of content based on bean definitions.- Author:
- Nils Bühner
-
-
Field Summary
Fields Modifier and Type Field Description protected InitializationServiceinitServiceInitialization Service to init shogun content like users or default applications.protected org.apache.logging.log4j.LoggerLOGThe Logger
-
Constructor Summary
Constructors Constructor Description ContentInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitializeDatabaseContent()The method called on initializationvoidsetInitService(InitializationService initService)voidsetObjectsToCreate(java.util.List<PersistentObject> objectsToCreate)voidsetShogunInitEnabled(java.lang.Boolean shogunInitEnabled)
-
-
-
Field Detail
-
LOG
protected final org.apache.logging.log4j.Logger LOG
The Logger
-
initService
@Autowired protected InitializationService initService
Initialization Service to init shogun content like users or default applications.
-
-
Method Detail
-
initializeDatabaseContent
public void initializeDatabaseContent()
The method called on initialization
-
setShogunInitEnabled
public void setShogunInitEnabled(java.lang.Boolean shogunInitEnabled)
- Parameters:
shogunInitEnabled-
-
setInitService
public void setInitService(InitializationService initService)
- Parameters:
initService-
-
setObjectsToCreate
public void setObjectsToCreate(java.util.List<PersistentObject> objectsToCreate)
- Parameters:
objectsToCreate-
-
-