=== Passing configuration to a verticle

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

[source,scala]
----
val config = Json.obj(("name","tim"), ("directory","/blah"))
vertx.deployVerticle(classOf[DemoVerticle].getName, DeploymentOptions().setConfig(config))
----

This configuration is then available via the `link:../../scaladocs/io/vertx/scala/core/Context.html[Context]`, The configuration is returned as a Map
object so you can retrieve data as follows:

[source,scala]
----
println vertx.getOrCreateContext().config().getString("name")
----

=== Accessing environment variables in a Verticle

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

[source,scala]
----
println System.getProperty("foo")
println System.getenv("HOME")
----