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

net.jkcode.jkmvc.common.IPlugin.kt Maven / Gradle / Ivy

package net.jkcode.jkmvc.common

import java.io.Closeable

/**
 * 插件, 主要2个方法
 *    1 start() 初始化
 *    2 close() 关闭
 *
 * @author shijianhang<[email protected]>
 * @date 2019-07-03 4:57 PM
 */
interface IPlugin: Closeable {

    /**
     * 初始化
     */
    fun start(){
        commonLogger.debug(" ------ plugin: {} ------ ", this.javaClass)
        doStart()
    }

    /**
     * 初始化
     */
    fun doStart()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy