I'm fairly new to Finatra and injection in general, so I may not have the right concept here.
I have a service that does some application logic. The interface is defined as
trait Foo {
def foo(): Unit
def bar(): Unit
}
And let's say I have some different implementations of Foo. I understand I can use `.bind` inside modules to bind specific implementations of Foo.
One of these implementations uses postgres. So before I write the application logic for that implementation, I want to have a module that just deals with postgres connections, so I think I need a module that @provides a connection. I've written that part.
If the implementation should be a service, how can I inject a module inside that service? will using @inject suffice? What would be the most "Finatra" way of implementing this?