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.

Declaration

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:

build.gradle
compile 'io.werval:io.werval.modules.guice:{werval-version}'

When using Maven:

pom.xml
<dependency>
    <groupId>io.werval</groupId>
    <artifactId>io.werval.modules.guice</artifactId>
    <version>{werval-version}</version>
</dependency>

And finally your application configuration:

application.conf
app.plugins.enabled += guice

Configuration

Usage