package com.codingchili.core.Context;

import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;

import com.codingchili.core.Protocol.AbstractHandler;

/**
 * @author Robin Duda
 *
 * deploytool to deploy to remote and generate configuration files for each host.
 */
public class Deploy {
    public static void service(AbstractHandler handler) {
        handler.context().deploy(handler);
    }

    public static void service(AbstractHandler handler, Handler<AsyncResult<String>> result) {
        handler.context().deploy(handler, result);
    }
}

@@ -188,220 +188,521 @@
 %0A * 
-deploytool to deploy to remote and generate configuration files for each host.%0A */%0Apublic class Deploy %7B%0A    public static void service(AbstractHandler handler) %7B%0A        handler.context().deploy(handler);%0A    %7D%0A
+Provides a shorthand for deploying a created handler.%0A */%0Apublic class Deploy %7B%0A%0A    /**%0A     * Deploys the given handler with its contained context.%0A     * @param handler the handler to be deployed.%0A     */%0A    public static void service(AbstractHandler handler) %7B%0A        handler.context().deploy(handler);%0A    %7D%0A%0A    /**%0A     * Deploys the given handler with its contained context.%0A     * @param handler the handler to be deployed.%0A     * @param result the handler to call when deployment is completed.%0A     */
 %0A   

Add JavaDoc to Deploy