add

abstract fun add(type: Class<out Any>, instance: Any)

Add a parameter with an instance value.

Parameters

type

the parameter type

instance

the instance that should be injected


abstract fun add(type: Class<out Any>, factory: (Class<out Any>) -> Any)

Add a parameter with an instance factory.

Parameters

type

the parameter type

factory

the factory used to create the instance that should be injected