prototype

fun <SRV : Any> prototype(srv: KClass<SRV>): KontainerBuilder

Registers a prototype service

The service can be injected by the type SRV or its base types


fun <SRV : Any, IMPL : SRV> prototype(srv: KClass<SRV>, impl: KClass<IMPL>): KontainerBuilder

Registers a prototype service

The service can be injected by the type SRV or its base types. The actual implementation will have the type IMPL


fun <SRV : Any, IMPL : SRV, FAC : Function<IMPL>> prototype(srv: KClass<SRV>, factory: FAC): KontainerBuilder

Registers a prototype service with variable number of parameters

The service can by injected by the type SRV and its base types


fun <SRV : Any, IMPL : SRV, P1> prototype(srv: KClass<SRV>, factory: (P1) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2> prototype(srv: KClass<SRV>, factory: (P1, P2) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3> prototype(srv: KClass<SRV>, factory: (P1, P2, P3) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8, P9> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) -> IMPL): KontainerBuilder
fun <SRV : Any, IMPL : SRV, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16> prototype(srv: KClass<SRV>, factory: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16) -> IMPL): KontainerBuilder

Create a prototype via a factory

The service can by injected by the type SRV and its base types The actual implementation will have the type IMPL