Vertx PicoContainer verticle factory
Dependency injection for verticles
Usage
Add dependency in Gradle:
dependencies {
compile "one.valuelogic.vertx-pico:0.1"
}
or in Maven:
<dependencies>
<dependency>
<groupId>one.valuelogic</groupId>
<artifactId>vertx-pico</artifactId>
<version>0.1</version>
</dependency>
</dependencies>
To be used, it should be registered in Vertx and verticle should be deployed with pico:
prefix.
vertx.registerVerticleFactory(new PicoVerticleFactory(picoContainer));
vertx.deployVerticle("pico:"+ExampleVerticle.class.getName());