Package de.terrestris.shoguncore.init
Class ContentInitializer
- java.lang.Object
-
- de.terrestris.shoguncore.init.ContentInitializer
-
public class ContentInitializer extends Object
Class 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.LoggerloggerThe 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(List<PersistentObject> objectsToCreate)voidsetShogunInitEnabled(Boolean shogunInitEnabled)
-
-
-
Field Detail
-
logger
protected final org.apache.logging.log4j.Logger logger
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(Boolean shogunInitEnabled)
- Parameters:
shogunInitEnabled-
-
setInitService
public void setInitService(InitializationService initService)
- Parameters:
initService-
-
setObjectsToCreate
public void setObjectsToCreate(List<PersistentObject> objectsToCreate)
- Parameters:
objectsToCreate-
-
-