forFactory

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

Creates a producer for a factory method with zero parameters.

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

Creates a producer for a factory method with one parameter.

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

Creates a producer for a factory method with two parameters.

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

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

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

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

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

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

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

Creates a producer for a factory method with nine 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

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

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

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

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

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

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

Creates a producer for a factory method with sixteen parameters.