InjectionManager.kt

  1. package com.hexagontk.injection

  2. /**
  3.  * Manage root module and injector. This object keep tracks of generator functions or specific
  4.  * instances bound to classes. Different providers can be bound to the same type using 'tags'.
  5.  *
  6.  * @property module Root module with the bindings.
  7.  * @property injector Injector created with the Manager's [module].
  8.  */
  9. object InjectionManager {
  10.     val module: Module = Module()
  11.     val injector: Injector = Injector(module)
  12. }