Passing configuration to a verticle

Configuration in the form of Map can be passed to a verticle at deployment time:

val config = Json.obj(("name","tim"), ("directory","/blah"))
vertx.deployVerticle(ScalaVerticle.nameForVerticle[DemoVerticle].getName, DeploymentOptions().setConfig(config))

This configuration is then available via the Context, The configuration is returned as a Map object so you can retrieve data as follows:

println vertx.getOrCreateContext().config().getString("name")

Accessing environment variables in a Verticle

Environment variables and system properties are accessible using the Java API:

println System.getProperty("foo")
println System.getenv("HOME")