java.lang.Object
io.jooby.guice.GuiceModule
- All Implemented Interfaces:
Extension
Guice module: https://jooby.io/modules/guice.
Jooby integrates the ServiceRegistry into the Guice framework.
Usage:
{
install(new GuiceModule());
}
Require calls are going to be resolved by Guice now.- Since:
- 2.0.0
- Author:
- edgar
-
Constructor Summary
ConstructorsConstructorDescriptionGuiceModule(com.google.inject.Injector injector) Creates a new guice module using the given injector.GuiceModule(com.google.inject.Module... modules) Creates a new guice module. -
Method Summary
-
Constructor Details
-
GuiceModule
public GuiceModule(@NonNull com.google.inject.Injector injector) Creates a new guice module using the given injector.- Parameters:
injector- Injector to use.
-
GuiceModule
public GuiceModule(@NonNull com.google.inject.Module... modules) Creates a new guice module.- Parameters:
modules- Module to add.
-
-
Method Details