ComponentFactoriesConfigurator
class ComponentFactoriesConfigurator(configurators: Map<ComponentFactory.Key, ConfigurerFunction<Any>> = emptyMap(), factories: Map<ComponentFactory.Key, (ComponentConfigureContext) -> Component> = emptyMap()) : MergeableFactoriesConfigurator<ComponentConfigureContext, Component, ComponentFactory.Key> (source)
用于对 ComponentFactory 进行聚合组装的配置器。
Constructors
Link copied to clipboard
constructor(configurators: Map<ComponentFactory.Key, ConfigurerFunction<Any>> = emptyMap(), factories: Map<ComponentFactory.Key, (ComponentConfigureContext) -> Component> = emptyMap())
Inherited functions
Link copied to clipboard
fun <V1 : Component, CONF : Any> add(factory: MergeableFactory<ComponentFactory.Key, V1, CONF, ComponentConfigureContext>, configurator: ConfigurerFunction<CONF>)
Link copied to clipboard
fun <K1 : ComponentFactory.Key, V1 : Component, CONF : Any> create(context: ComponentConfigureContext, factory: MergeableFactory<K1, V1, CONF, ComponentConfigureContext>): V1
Link copied to clipboard
Link copied to clipboard
fun <K1 : ComponentFactory.Key, V1 : Component, CONF : Any> createOrNull(factory: MergeableFactory<K1, V1, CONF, ComponentConfigureContext>, context: ComponentConfigureContext): V1?