~/talk

Minimalist Dependency Injection in Kotlin

links:none on file

Aleksei’s injector is a lightweight Kotlin service‑locator that uses delegated properties to deliver dependencies lazily, explicitly avoiding no reflection or code generation, and it wires modules into a single monolithic injector at app start. It implements scoped lifecycle with start/stop so scoped instances are cached per active scope and cleaned up when stopped, exposes a checkInjector validation method to fail a single integration test for missing bindings, and supplies a mock injector for unit tests so injected fields can be replaced and verified.

AI-written summary · about

  1. 0:00Introduction to Injector
  2. 1:55What is Injector
  3. 3:42Basic Usage Demo
  4. 5:09Dependency Resolution
  5. 6:13Scope Management
  6. 7:18Scoped Instances
  7. 8:04Validation and Testing
  8. 9:31Configuration Checks
  9. 10:14Unit Testing Injected Classes
  10. 11:40How Injector Works
  11. 13:54Providers and Bindings
  12. 14:42Design Principles
  13. 16:30Configuration Correctness
  14. 16:54Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.