doc / ch.tutteli.atrium.creating / ComponentFactory

ComponentFactory

data class ComponentFactory (source)

Provides a build lambda which produces the component and specifies via producesSingleton whether this component should be treated as singleton or not.

Constructors

<init>

ComponentFactory(build: (ComponentFactoryContainer) -> Any, producesSingleton: Boolean)

Provides a build lambda which produces the component and specifies via producesSingleton whether this component should be treated as singleton or not.

Properties

build

val build: (ComponentFactoryContainer) -> Any

producesSingleton

val producesSingleton: Boolean