spring-boot-extensions / de.alpharogroup.spring.boot.application / ApplicationHooks

ApplicationHooks

object ApplicationHooks

Holds some application hooks for the SpringApplication

Properties

creationState

lateinit var creationState: CreationState

Functions

addDatabaseIfNotExists

fun addDatabaseIfNotExists(application: SpringApplication, parent: File, yamlFilename: String): Unit

Creates a new database if not exists

addDbIfNotExists

fun SpringApplication.addDbIfNotExists(parent: File, yamlFilename: String): Unit

Extension method for the SpringApplication to add a new database if not exists