All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.pouvoir.api.feature.database.BaseContainer.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.api.feature.database

import com.skillw.pouvoir.api.plugin.map.component.Keyable

/**
 * @className BaseContainer
 *
 * 数据库容器抽象基类,拥有独立生命周期
 *
 * 等同于SQL数据库中的一个Table 或者 Redis中的SingleRedisConnection
 *
 * @author Glom
 * @date 2023/1/12 18:35 Copyright 2024 Glom. 
 */
abstract class BaseContainer(
    override val key: String,
    val holder: ContainerHolder<*>,
) : Keyable {
    open fun onEnable() {}
    open fun onActive() {}
    open fun onReload() {}
    open fun onDisable() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy