io.quarkiverse.jnosql.keyvalue.deployment.Processor Maven / Gradle / Ivy
The newest version!
package io.quarkiverse.jnosql.keyvalue.deployment;
import java.io.IOException;
import org.eclipse.jnosql.communication.keyvalue.KeyValueConfiguration;
import io.quarkiverse.jnosql.core.deployment.ServiceProviderRegister;
import io.quarkiverse.jnosql.keyvalue.runtime.BucketManagerProducer;
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.deployment.ExcludedTypeBuildItem;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
class Processor {
private static final String FEATURE = "jnosql-keyvalue";
@BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}
@BuildStep
void build(BuildProducer additionalBeanProducer) {
additionalBeanProducer.produce(AdditionalBeanBuildItem.unremovableOf(BucketManagerProducer.class));
}
@BuildStep
void buildExcludedType(BuildProducer excludedTypeProducer) {
excludedTypeProducer.produce(
new ExcludedTypeBuildItem("org.eclipse.jnosql.mapping.keyvalue.configuration.BucketManagerSupplier"));
}
@BuildStep
void registerNativeImageResources(BuildProducer services) throws IOException {
ServiceProviderRegister.registerService(services, KeyValueConfiguration.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy