Interface MongoConfigurationService

All Known Implementing Classes:
StandardMongoConfigurationService

public interface MongoConfigurationService

Provides direct database access to the MongoDB instance backing Elements. Reads the Namazu Elements system configuration to supply the raw server configuration, including SSL/TLS configuration, depending on the deployment-time configuration. Using this service guarantees that any new MongoClient instances created from the resulting configuration will connect properly to the database.

The MongoConfiguration returned here represents the lowest and most direct level of database access. In contrast, the services MongoClient and MongoDatabase services returned from this Element share with the core DAO layer, which carry their own opinions on how to interact with the database (e.g. codec registries, session handling). Use this service when you need a raw, unconfigured connection to MongoDB without those constraints.