BaseStandardApplicationBuilder
abstract class BaseStandardApplicationBuilder<A : Application> : BaseApplicationBuilder<A> , StandardApplicationBuilder<A> (source)
提供一个使用 SimpleEventListenerManager 作为内部事件处理器的 ApplicationBuilder 抽象类。
Author
ForteScarlet
Functions
Link copied to clipboard
protected open fun addListenerManagerConfig(configurator: SimpleListenerManagerConfiguration.(environment: Application.Environment) -> Unit)
Link copied to clipboard
添加一个bot注册函数。
Link copied to clipboard
Link copied to clipboard
protected open fun buildListenerManager(appConfig: ApplicationConfiguration, environment: Application.Environment): SimpleEventListenerManager
构建并得到目标 SimpleEventListenerManager.
Link copied to clipboard
protected suspend fun buildProviders(eventProcessor: EventProcessor, components: List<Component>, applicationConfiguration: ApplicationConfiguration): List<EventProvider>
Link copied to clipboard
当 Application 构建完毕,则执行此函数来执行所有的回调函数。
Link copied to clipboard
Link copied to clipboard
open override fun eventProcessor(configurator: SimpleListenerManagerConfiguration.(environment: Application.Environment) -> Unit)
配置当前的构建器内的事件处理器。
Link copied to clipboard
Link copied to clipboard
open override fun <C : Component, Config : Any> install(componentFactory: ComponentFactory<C, Config>, configurator: Config.(perceivable: CompletionPerceivable<A>) -> Unit)
注册一个 组件.
open override fun <P : EventProvider, Config : Any> install(eventProviderFactory: EventProviderFactory<P, Config>, configurator: Config.(perceivable: CompletionPerceivable<A>) -> Unit)
注册一个 事件提供者.
Link copied to clipboard
inline fun EventProcessableApplicationBuilder<*>.listeners(crossinline block: EventListenerRegistrationDescriptionsGenerator.(environment: Application.Environment) -> Unit)
配置 EventProcessableApplicationBuilder.eventProcessor 的 listeners
.
Link copied to clipboard
Link copied to clipboard
提供botManager列表并执行它们的注册逻辑。