All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.githubapp.runtime.GitHubAppRecorder Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
package io.quarkiverse.githubapp.runtime;

import java.util.List;

import io.quarkus.runtime.ShutdownContext;
import io.quarkus.runtime.annotations.Recorder;
import io.quarkus.vertx.http.runtime.devmode.FileSystemStaticHandler;
import io.quarkus.vertx.http.runtime.webjar.WebJarStaticHandler;
import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;

@Recorder
public class GitHubAppRecorder {

    public Handler replayUiHandler(String replayUiFinalDestination, String replayUiPath,
            List webRootConfigurations,
            ShutdownContext shutdownContext) {
        WebJarStaticHandler handler = new WebJarStaticHandler(replayUiFinalDestination, replayUiPath,
                webRootConfigurations);
        shutdownContext.addShutdownTask(new ShutdownContext.CloseRunnable(handler));

        return handler;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy