wirebox.system.ioc.IProvider
(one get()
method) and then you can map it. Once mapped, you can use it anywhere WireBox listens for providers:.toProvider()
mapping method in the binder so anytime somebody requests an Espresso we can get it from our funky provider. Please note that I also map the provider because it also has some DI needed.Espresso
, WireBox will direct its construction to the provider you registered it with.