Component Factories Configurator
class ComponentFactoriesConfigurator(configurators: Map<ComponentFactory.Key, ConfigurerFunction<Any>> = emptyMap(), factories: Map<ComponentFactory.Key, (ComponentConfigureContext) -> Component> = emptyMap()) : MergeableFactoriesConfigurator<ComponentConfigureContext, Component, ComponentFactory.Key>
用于对 ComponentFactory 进行聚合组装的配置器。
Constructors
Link copied to clipboard
constructor(configurators: Map<ComponentFactory.Key, ConfigurerFunction<Any>> = emptyMap(), factories: Map<ComponentFactory.Key, (ComponentConfigureContext) -> Component> = emptyMap())
Functions
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?