Hi,
I am trying to learn Guice as part of working with the Play framework.
I have the following setup:
I have a ProjectController class that has the following contstructor:
class ProjectController @Inject() (repo: ProjectRepository, uow: UnitOfWork)
The ProjectRepository also has a UnitOfWork dependency.
I would like Guice to inject the same UnitOfWork instance into the ProcjectRepository and into the ProjectController,
without having to make the UnitOfWork a singleton.
Is there a way to do this in Guice currently?
Regards
--Rouan