Companion

object Companion

Functions

Link copied to clipboard
fun <T : Any> forClass(cls: KClass<T>): ServiceProducer<T>

Creates a producer for the given class.

Link copied to clipboard
fun <R : Any> forFactory(factory: () -> R): ServiceProducer<R>

Creates a producer for a factory method with zero parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R): ServiceProducer<R>

Creates a producer for a factory method with ten parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) -> R): ServiceProducer<R>

Creates a producer for a factory method with eleven parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) -> R): ServiceProducer<R>

Creates a producer for a factory method with twelve parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) -> R): ServiceProducer<R>

Creates a producer for a factory method with thirteen parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) -> R): ServiceProducer<R>

Creates a producer for a factory method with fourteen parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) -> R): ServiceProducer<R>

Creates a producer for a factory method with fifteen parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16) -> R): ServiceProducer<R>

Creates a producer for a factory method with sixteen parameters.

fun <R : Any, P1> forFactory(factory: (P1) -> R): ServiceProducer<R>

Creates a producer for a factory method with one parameter.

fun <R : Any, P1, P2> forFactory(factory: (P1, P2) -> R): ServiceProducer<R>

Creates a producer for a factory method with two parameters.

fun <R : Any, P1, P2, P3> forFactory(factory: (P1, P2, P3) -> R): ServiceProducer<R>

Creates a producer for a factory method with three parameters.

fun <R : Any, P1, P2, P3, P4> forFactory(factory: (P1, P2, P3, P4) -> R): ServiceProducer<R>

Creates a producer for a factory method with four parameters.

fun <R : Any, P1, P2, P3, P4, P5> forFactory(factory: (P1, P2, P3, P4, P5) -> R): ServiceProducer<R>

Creates a producer for a factory method with five parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6> forFactory(factory: (P1, P2, P3, P4, P5, P6) -> R): ServiceProducer<R>

Creates a producer for a factory method with six parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7) -> R): ServiceProducer<R>

Creates a producer for a factory method with seven parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8) -> R): ServiceProducer<R>

Creates a producer for a factory method with eight parameters.

fun <R : Any, P1, P2, P3, P4, P5, P6, P7, P8, P9> forFactory(factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R): ServiceProducer<R>

Creates a producer for a factory method with nine parameters.

fun <R : Any> forFactory(factory: Function<R>): ServiceProducer<R>
Link copied to clipboard
fun <T : Any> forInstance(instance: T): ServiceProducer<T>

Creates a producer for an already existing service instance.

Link copied to clipboard
fun forKontainer(): ServiceProducer<Kontainer>

Creates a producer for the Kontainer itself, making it possible to inject the Kontainer.

Link copied to clipboard
fun forKontainerBlueprint(): ServiceProducer<KontainerBlueprint>

Creates a producer for the KontainerBlueprint, making it possible to inject the KontainerBlueprint that produced the Kontainer.