Package-level declarations

Types

Link copied to clipboard

Basic resolver of dependencies for constructor-based dependency injection.

Link copied to clipboard
Link copied to clipboard
annotation class DoNotResolve

Mark an optional parameter to be ignored by dependency resolution

Link copied to clipboard
annotation class ResolveAll

Resolve all matching values, e.g. multiple implementations of the same interface

Link copied to clipboard
annotation class ResolveByName(val name: String = USE_PARAMETER_NAME)

Mark parameter as injected by name rather than type

Functions

Link copied to clipboard

Convenience function for building a context in the simple case.

Link copied to clipboard
inline fun <T> resolveDependenciesAndGet(vararg sources: Any): T

Convenience function for building a context and extracting the "main" constructed object in the simple case.