Skip to content
Snippets Groups Projects
Commit a33d8fb7 authored by Jonas Blatt's avatar Jonas Blatt :ant:
Browse files

Add quarkus livecycle bean for frontend

parent 898d51dd
No related branches found
No related tags found
No related merge requests found
package de.unikoblenz.fgbks.dmn.frontend;
import io.quarkus.runtime.ShutdownEvent;
import io.quarkus.runtime.StartupEvent;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.event.Observes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ApplicationScoped
public class AppLifecycleBean {
private static final Logger LOGGER = LoggerFactory.getLogger("AppLifecycle");
void onStart(@Observes StartupEvent ev) {
LOGGER.info("The dmn verification application (frontend) is starting...");
}
void onStop(@Observes ShutdownEvent ev) {
LOGGER.info("The dmn verification application (frontend) is stopping...");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment