io.quarkiverse.githubapp.runtime.GitHubAppRecorder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-github-app Show documentation
Show all versions of quarkus-github-app Show documentation
Automate GitHub tasks with a GitHub App
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