Package-level declarations

Types

Link copied to clipboard
sealed class Delegate<in M, T>

Kapsule property delegate.

Link copied to clipboard
interface HasModules

Module with other submodules attached via delegation.

Link copied to clipboard
interface Injects<M>

Injection interface.

Link copied to clipboard
class Kapsule<M>

Kapsule injector.

Link copied to clipboard
object Kapsules

Static storage of Kapsule instances.

Link copied to clipboard

Class cast exception indicating that a submodule depends on a module that is not a descendant of the root module.

Functions

Link copied to clipboard
fun <M> Injects<M>.inject(module: M)

Fetches Kapsule instance and calls Kapsule.inject.

Link copied to clipboard
fun <M, T> Injects<M>.optional(initializer: M.() -> T?): Delegate.Optional<M, T>

Fetches Kapsule instance and calls Kapsule.optional.

Link copied to clipboard
fun <M, T> Injects<M>.required(initializer: M.() -> T): Delegate.Required<M, T>

Fetches Kapsule instance and calls Kapsule.required.

Link copied to clipboard

Injects root module into any submodules with transitive dependencies.