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

io.quarkus.hibernate.orm.deployment.HibernateCacheProcessor Maven / Gradle / Ivy

There is a newer version: 3.15.0
Show newest version
package io.quarkus.hibernate.orm.deployment;

import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;

/**
 * TODO: is this the correct place for this? Should the cache have its own extension?
 */
public final class HibernateCacheProcessor {

    @BuildStep
    public void build(BuildProducer reflectiveClass) {
        String[] classes = new String[] {
                "com.github.benmanes.caffeine.cache.SSA",
                "com.github.benmanes.caffeine.cache.SSMSA",
                "com.github.benmanes.caffeine.cache.PSA",
                "com.github.benmanes.caffeine.cache.PSW",
                "com.github.benmanes.caffeine.cache.PSWMS",
        };

        reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, classes));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy