compile 'io.werval:io.werval.modules.guice:{werval-version}'
The Guice module provide a GuicePlugin
that brings dependency injection thanks to Google Guice.
Tip
|
Guice Documentation
This documentation do not cover Guice itself as it is already well covered on the official user guide. |
In order to use the GuicePlugin
you must add a dependency to io.werval.modules.guice
and register the plugin in your configuration.
When using Gradle:
compile 'io.werval:io.werval.modules.guice:{werval-version}'
When using Maven:
<dependency>
<groupId>io.werval</groupId>
<artifactId>io.werval.modules.guice</artifactId>
<version>{werval-version}</version>
</dependency>
And finally your application configuration:
app.plugins.enabled += guice