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

io.quarkus.arc.runtime.appcds.AppCDSRecorder Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.arc.runtime.appcds;

import io.quarkus.runtime.PreventFurtherStepsException;
import io.quarkus.runtime.annotations.Recorder;
import io.quarkus.runtime.init.InitializationTaskRecorder;

@Recorder
public class AppCDSRecorder {

    public static final String QUARKUS_APPCDS_GENERATE_PROP = "quarkus.appcds.generate";

    public void controlGenerationAndExit() {
        if (Boolean.parseBoolean(System.getProperty(QUARKUS_APPCDS_GENERATE_PROP, "false"))) {
            InitializationTaskRecorder.preventFurtherRecorderSteps(5,
                    "Unable to properly shutdown Quarkus application when creating AppCDS",
                    PreventFurtherStepsException::new);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy