io.quarkus.primefaces.extensions.runtime.PrimeFacesExtensionsFeature Maven / Gradle / Ivy
package io.quarkus.primefaces.extensions.runtime;
import org.graalvm.nativeimage.hosted.Feature;
import org.graalvm.nativeimage.hosted.RuntimeClassInitialization;
public class PrimeFacesExtensionsFeature implements Feature {
private final static String REASON = "PrimeFaces Extensions runtime initialization";
@Override
public String getDescription() {
return REASON;
}
@Override
public void afterRegistration(AfterRegistrationAccess access) {
// Commons Lang3 is optional but a lot of PFE users use it
RuntimeClassInitialization.initializeAtRunTime("org.apache.commons.lang3.RandomUtils");
}
}