package io.dropwizard.lifecycle;

import org.eclipse.jetty.server.Server;

import java.util.EventListener;

public interface ServerLifecycleListener extends EventListener {
    void serverStarted(Server server);
}

@@ -63,16 +63,107 @@
 ver.
-Server;%0A
+Connector;%0Aimport org.eclipse.jetty.server.Server;%0Aimport org.eclipse.jetty.server.ServerConnector;
 %0Aimp
@@ -295,11 +295,341 @@
 server);
+%0A%0A    default int getLocalPort(Server server) %7B%0A        return ((ServerConnector) server.getConnectors()%5B0%5D).getLocalPort();%0A    %7D%0A%0A    default int getAdminPort(Server server) %7B%0A        final Connector%5B%5D connectors = server.getConnectors();%0A        return ((ServerConnector) connectors%5Bconnectors.length -1%5D).getLocalPort();%0A    %7D
 %0A%7D%0A

Add helper functions for getting the local and admin ports from a server instance