mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-09-05 15:59:19 +00:00
23 lines
522 B
Kotlin
23 lines
522 B
Kotlin
package dev.inmo.micro_utils.startup.launcher
|
|
|
|
import dev.inmo.micro_utils.startup.plugin.StartPlugin
|
|
import kotlinx.serialization.Serializable
|
|
|
|
/**
|
|
* Contains just [List] of [StartPlugin]s. In json this config should look like:
|
|
*
|
|
* ```json
|
|
* {
|
|
* "plugins": [
|
|
* "dev.inmo.micro_utils.startup.launcher.HelloWorldPlugin"
|
|
* ]
|
|
* }
|
|
* ```
|
|
*
|
|
* In the sample above [HelloWorldPlugin] will be loaded during startup of application
|
|
*/
|
|
@Serializable
|
|
data class Config(
|
|
val plugins: List<StartPlugin>
|
|
)
|