io.quarkiverse.jnosql.keyvalue.runtime.BucketManagerProducer Maven / Gradle / Ivy
The newest version!
package io.quarkiverse.jnosql.keyvalue.runtime;
import java.util.function.Supplier;
import jakarta.annotation.Priority;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.Alternative;
import jakarta.enterprise.inject.Produces;
import org.eclipse.jnosql.communication.keyvalue.BucketManager;
import org.eclipse.jnosql.communication.keyvalue.BucketManagerFactory;
import org.eclipse.jnosql.communication.keyvalue.KeyValueConfiguration;
import org.eclipse.jnosql.mapping.core.config.MappingConfigurations;
import io.quarkiverse.jnosql.core.runtime.AbstractManagerProducer;
public class BucketManagerProducer extends AbstractManagerProducer
implements Supplier {
@Override
@Produces
@Alternative
@Priority(1)
@ApplicationScoped
public BucketManager get() {
return apply(MappingConfigurations.KEY_VALUE_DATABASE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy