Configurable DI
Constructors
Link copied to clipboard
Default constructor.
Link copied to clipboard
Convenient constructor to directly set the mutability.
Functions
Link copied to clipboard
Adds a configuration to the bindings that will be applied when the DI is constructed.
Link copied to clipboard
fun addExtend( di: <ERROR CLASS>, allowOverride: Boolean = false, copy: <ERROR CLASS> = Copy.NonCached): ConfigurableDI
Content copied to clipboard
Adds the bindings of an existing DI instance to the bindings that will be applied when the DI is constructed.
Link copied to clipboard
fun addImport(module: <ERROR CLASS>, allowOverride: Boolean = false): ConfigurableDI
Content copied to clipboard
Adds a module to the bindings that will be applied when the DI is constructed.
Link copied to clipboard
Get the DI instance if it has already been constructed, or construct it if not.