Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Created February 19, 2020 02:48
Show Gist options
  • Save markchristopherng/8b74a4d914cba927ba015a75777618f7 to your computer and use it in GitHub Desktop.
Save markchristopherng/8b74a4d914cba927ba015a75777618f7 to your computer and use it in GitHub Desktop.
val toothpickModule = module {
bind<GreetingService>().toClass<GreetingServiceImpl>().singleton()
bind<TimeService>().toInstance(TimeServiceImpl())
bind<MessageData>().toInstance(MessageData())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment