com.englishtown:vertx-mod-guice

Provides a VerticleFactory that uses Guice for dependency injection.

License

License

Categories

Categories

GUI User Interface Guice Application Layer Libs Dependency Injection
GroupId

GroupId

com.englishtown
ArtifactId

ArtifactId

vertx-mod-guice
Last Version

Last Version

1.3.0-final
Release Date

Release Date

Type

Type

jar
Description

Description

Provides a VerticleFactory that uses Guice for dependency injection.
Project URL

Project URL

https://github.com/englishtown/vertx-mod-guice
Project Organization

Project Organization

Englishtown
Source Code Management

Source Code Management

https://github.com/englishtown/vertx-mod-guice

Download vertx-mod-guice

How to add to project

<!-- https://jarcasting.com/artifacts/com.englishtown/vertx-mod-guice/ -->
<dependency>
    <groupId>com.englishtown</groupId>
    <artifactId>vertx-mod-guice</artifactId>
    <version>1.3.0-final</version>
</dependency>
// https://jarcasting.com/artifacts/com.englishtown/vertx-mod-guice/
implementation 'com.englishtown:vertx-mod-guice:1.3.0-final'
// https://jarcasting.com/artifacts/com.englishtown/vertx-mod-guice/
implementation ("com.englishtown:vertx-mod-guice:1.3.0-final")
'com.englishtown:vertx-mod-guice:jar:1.3.0-final'
<dependency org="com.englishtown" name="vertx-mod-guice" rev="1.3.0-final">
  <artifact name="vertx-mod-guice" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.englishtown', module='vertx-mod-guice', version='1.3.0-final')
)
libraryDependencies += "com.englishtown" % "vertx-mod-guice" % "1.3.0-final"
[com.englishtown/vertx-mod-guice "1.3.0-final"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.inject : guice jar 3.0

provided (2)

Group / Artifact Type Version
io.vertx : vertx-core jar 2.0.1-final
io.vertx : vertx-platform jar 2.0.1-final

test (3)

Group / Artifact Type Version
org.mockito : mockito-all jar 1.9.5
junit : junit jar 4.11
io.vertx : testtools jar 2.0.1-final

Project Modules

There are no modules declared in this project.

Vert.x Guice Extensions

Enable Verticle dependency injection using Guice. Deploy your verticle with the java-guice: prefix to use the GuiceVerticleFactory.

Build Status Maven Central

License

http://englishtown.mit-license.org/

Configuration

Either provide a com.englishtown.vertx.guice.BootstrapBinder that implements com.google.inject.Module, or via vert.x config, provide a custom class name.

{
    "guice_binder": "my.custom.bootstrap.Binder"
}

Example

package com.englishtown.vertx.guice;

import com.englishtown.configuration.ConfigValueManager;
import com.englishtown.configuration.OtherBinder1;
import com.englishtown.configuration.OtherBinder2;
import com.englishtown.configuration.impl.PropertiesConfigValueManager;
import com.google.inject.AbstractModule;

import javax.inject.Singleton;

public class BootstrapBinder extends AbstractModule {

    @Override
    protected void configure() {

        // Configure bindings
        bind(ConfigValueManager.class).to(PropertiesConfigValueManager.class).in(Singleton.class);

        // Install other binders
        install(new OtherBinder1(), new OtherBinder2());

    }

}
com.englishtown

Labs @ EF Education First

Repositories moving to https://github.com/ef-labs

Versions

Version
1.3.0-final
1.2.0-final
1.1.0-final
1.0.0-final