@Override
    public Server build(Environment environment) {
        requireNonNull(environment, "environment");
        printBanner(environment.getName());
        final MetricRegistry metrics = environment.metrics();
        final ThreadPool threadPool = createThreadPool(metrics);
        final Server server = buildServer(environment.lifecycle(), threadPool);

        final JerseyEnvironment jersey = environment.jersey();
        if (!isJerseyEnabled()) {
            jersey.disable();
        }

        addDefaultHandlers(server, environment, metrics);
        serverBuilder = buildServerBuilder(server, metrics);
        return server;
    }
A Dropwizard {@link ServerFactory} implementation for Armeria that replaces
Dropwizard's default Jetty handler with one provided by Armeria.
dropwizard2/src/main/java/com/linecorp/armeria/dropwizard/ArmeriaServerFactory.java