AbstractApplicationFactoryConfigurer

abstract class AbstractApplicationFactoryConfigurer<C : ApplicationBuilder, AER : ApplicationEventRegistrar, DC : EventDispatcherConfiguration>(val configConfigurers: MutableList<ConfigurerFunction<C>> = mutableListOf(), val applicationEventRegistrarConfigurations: MutableList<ConfigurerFunction<AER>> = mutableListOf(), val eventDispatcherConfigurers: MutableList<ConfigurerFunction<DC>> = mutableListOf(), val componentFactoriesConfigurator: ComponentFactoriesConfigurator = ComponentFactoriesConfigurator(), val pluginFactoriesConfigurator: PluginFactoriesConfigurator = PluginFactoriesConfigurator()) : ApplicationFactoryConfigurer<C, AER, DC> (source)

ApplicationFactoryConfigurer 的基础抽象实现,提供大部分DSL配置能力的简单实现。

See also

Constructors

Link copied to clipboard
constructor(configConfigurers: MutableList<ConfigurerFunction<C>> = mutableListOf(), applicationEventRegistrarConfigurations: MutableList<ConfigurerFunction<AER>> = mutableListOf(), eventDispatcherConfigurers: MutableList<ConfigurerFunction<DC>> = mutableListOf(), componentFactoriesConfigurator: ComponentFactoriesConfigurator = ComponentFactoriesConfigurator(), pluginFactoriesConfigurator: PluginFactoriesConfigurator = PluginFactoriesConfigurator())

Functions

Link copied to clipboard
open override fun config(configurer: ConfigurerFunction<C>)

配置 Application 配置阶段的一些配置信息。

Link copied to clipboard
Link copied to clipboard
protected open fun createAllPlugins(context: PluginConfigureContext): List<Plugin>
Link copied to clipboard
protected inline fun <AC : ApplicationConfiguration> createConfig(configBuilder: C, afterConfig: (C) -> AC): AC
Link copied to clipboard
open override fun eventDispatcher(configurer: ConfigurerFunction<DC>)

添加一个事件调度器配置。

Link copied to clipboard
open override fun <COM : Component, CONF : Any> install(componentFactory: ComponentFactory<COM, CONF>, configurer: ConfigurerFunction<CONF>)

注册安装一个组件类型,并为其添加对应的配置。

open override fun <P : Plugin, CONF : Any> install(pluginFactory: PluginFactory<P, CONF>, configurer: ConfigurerFunction<CONF>)

注册安装一个插件 Plugin 类型,并为其添加一个对应的配置。

Link copied to clipboard
open override fun stageEvents(configurer: ConfigurerFunction<AER>)

配置 Application 的阶段事件。

Inherited functions

Link copied to clipboard

通过 loadComponentFactoriesFromProviders 加载并安装所有可寻得的组件。

Link copied to clipboard

通过 loadPluginFactoriesFromProviders 加载并安装所有可寻得的组件。

Link copied to clipboard
open override fun <COM : Component, CONF : Any> install(componentFactory: ComponentFactory<COM, CONF>)

注册安装一个组件类型。

open override fun <P : Plugin, CONF : Any> install(pluginFactory: PluginFactory<P, CONF>)

注册安装一个插件 Plugin 类型。