=== Passing configuration to a verticle

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

[source,groovy]
----
def config = [
 name:"tim",
 directory:"/blah"
]
def options = [ "config" : config ];
vertx.deployVerticle("com.mycompany.MyOrderProcessorVerticle", options);
----

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

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

NOTE: The configuration can also be a `link:../../apidocs/io/vertx/core/json/JsonObject.html[JsonObject]` object.

=== Accessing environment variables in a Verticle

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

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