package com.codingchili.core.protocol;

import io.vertx.core.Context;
import io.vertx.core.Vertx;

import com.codingchili.core.context.CoreException;
import com.codingchili.core.context.ServiceContext;
import com.codingchili.core.logging.Logger;

/**
 * @author Robin Duda
 *         <p>
 *         Base handler for processing incoming messages.
 */
public abstract class AbstractHandler<T extends ServiceContext> implements CoreHandler {
    private final Logger logger;
    protected final T context;
    private final String address;

    /**
     * @param context the context to attach to the handler.
     * @param address the address the handler is listenening to.
     */
    protected AbstractHandler(T context, String address) {
        this.context = context;
        this.address = address;
        this.logger = context.logger();
    }

    @Override
    public Logger logger() {
        return logger;
    }

    @Override
    public abstract void handle(Request request) throws CoreException;

    @Override
    public String address() {
        return address;
    }

    @Override
    public T context() {
        return context;
    }

    @Override
    public Vertx getVertx() {
        return context.vertx();
    }

    @Override
    public void init(Vertx vertx, Context context) {
    }
}

@@ -92,16 +92,65 @@
 Vertx;%0A%0A
+import com.codingchili.core.context.CoreContext;%0A
 import c
@@ -1270,32 +1270,97 @@
 vertx();%0A    %7D%0A%0A
+    @Override%0A    public void init(CoreContext context) %7B%0A    %7D%0A%0A
     @Override%0A  

Fix compile errors.