/*
 * Copyright 2014 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.kuujo.vertigo;

import io.vertx.codegen.annotations.Options;
import io.vertx.core.VertxOptions;
import io.vertx.core.json.JsonObject;

/**
 * Vertigo options.
 *
 * @author <a href="http://github.com/kuujo">Jordan Halterman</a>
 */
@Options
public class VertigoOptions extends VertxOptions {

  public VertigoOptions() {
  }

  public VertigoOptions(VertigoOptions options) {
    super(options);
  }

  public VertigoOptions(JsonObject options) {
    super(options);
  }

  @Override
  public int hashCode() {
    int hashCode = 23;
    hashCode = 37 * hashCode + super.hashCode();
    return hashCode;
  }

}

@@ -749,16 +749,55 @@
 nObject;
+%0Aimport net.kuujo.vertigo.util.Configs;
 %0A%0A/**%0A *
@@ -1118,24 +1118,61 @@
 r(options);%0A
+    options.mergeIn(Configs.load());%0A
   %7D%0A%0A  @Over

Add loaded configuration to VertigoOptions configuration.