Class MongoDBConfigSourceFactory

java.lang.Object
org.apache.polaris.persistence.nosql.quarkus.backend.MongoDBConfigSourceFactory
All Implemented Interfaces:
io.smallrye.config.ConfigSourceFactory

public class MongoDBConfigSourceFactory extends Object implements io.smallrye.config.ConfigSourceFactory
This config source factory is used to activate the Quarkus-MongoDB driver when the MongoDB NoSQL database backend is used, and otherwise disable the Quarkus-MongoDB driver.

The Quarkus configuration quarkus.mongodb.active, defaults to true, got added via Quarkus 3.31.0.

Having a Quarkus-Mongo driver active means that it will be considered during the readiness and health checks. In other words, the default of true breaks non-MongoDB version store types.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.smallrye.config.ConfigSourceFactory

    io.smallrye.config.ConfigSourceFactory.ConfigurableConfigSourceFactory<MAPPING>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterable<org.eclipse.microprofile.config.spi.ConfigSource>
    getConfigSources(io.smallrye.config.ConfigSourceContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.smallrye.config.ConfigSourceFactory

    getPriority
  • Constructor Details

    • MongoDBConfigSourceFactory

      public MongoDBConfigSourceFactory()
  • Method Details

    • getConfigSources

      public Iterable<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources(io.smallrye.config.ConfigSourceContext context)
      Specified by:
      getConfigSources in interface io.smallrye.config.ConfigSourceFactory