GenericBootEventListener

通用监听函数接口,是在 boot-core 下解析生成的各类监听函数的统一标准接口。

所有通过扫描函数而得到的监听函数,其都建议使用可挂起的(suspend) 函数作为执行体。 对于那些非可挂起的监听函数(普通函数、Java函数等),函数的执行逻辑 (KFunction.call(...)) 将会在 runWithInterruptible 中,默认以 kotlinx.coroutines.Dispatchers.IO 作为调度器被执行。

Author

ForteScarlet

Functions

Link copied to clipboard
abstract override fun <T : Any> getAttribute(attribute: Attribute<T>): T?
Link copied to clipboard
abstract suspend operator override fun invoke(context: EventListenerProcessingContext): EventResult
Link copied to clipboard
abstract override fun isTarget(eventType: Event.Key<*>): Boolean
Link copied to clipboard
abstract suspend override fun match(context: EventListenerProcessingContext): Boolean

Inheritors

Link copied to clipboard
Link copied to clipboard