JUsecase Guice
A use case executor for JUsecase that uses Guice for dependency injection.
Setup
JUsecase Guice is available on maven central repository:
<dependency>
<groupId>org.jusecase</groupId>
<artifactId>jusecase-guice</artifactId>
<version>0.3.0</version>
</dependency>
Sample usage
public class BusinessLogic extends GuiceUsecaseExecutor {
public BusinessLogic() {
super(Guice.createInjector());
addUsecase(Login.class);
addUsecase(Logout.class);
addUsecase(GetUsers.class);
// ...
}
}
Usage in real-life project
Have a look at the BusinessLogic class at the Mazebert TD ladder backend project.