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

io.quarkus.primefaces.runtime.PrimeFacesFeature Maven / Gradle / Ivy

package io.quarkus.primefaces.runtime;

import org.graalvm.nativeimage.hosted.Feature;
import org.graalvm.nativeimage.hosted.RuntimeClassInitialization;
import org.krysalis.barcode4j.output.bitmap.BitmapEncoderRegistry;

public class PrimeFacesFeature implements Feature {
    private final static String REASON = "PrimeFaces runtime initialization";

    @Override
    public void afterRegistration(AfterRegistrationAccess access) {
        // Barcode component is optional but must register this for native mode since it uses AWT
        RuntimeClassInitialization.initializeAtRunTime(BitmapEncoderRegistry.class.getName());
        // XDEV Charts.js uses SecureRandom
        RuntimeClassInitialization.initializeAtRunTime("software.xdev.chartjs.model.color.Color");
        RuntimeClassInitialization.initializeAtRunTime("software.xdev.chartjs.model.color.HSLAColor");
        RuntimeClassInitialization.initializeAtRunTime("software.xdev.chartjs.model.color.RGBAColor");
    }

    @Override
    public String getDescription() {
        return REASON;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy