Interface MongoConfigurationService
- All Known Implementing Classes:
StandardMongoConfigurationService
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classReturns the defaultKeyManagerFactoryalgorithm.static classReturns the defaultTrustManagerFactoryalgorithm. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the MongoDB configuration for the Namazu Elements system.
-
Field Details
-
MONGO_CLIENT_URI
- See Also:
-
FORMAT
- See Also:
-
TRUST_ALGORITHM
- See Also:
-
KEY_ALGORITHM
- See Also:
-
CA
- See Also:
-
CA_PASSPHRASE
- See Also:
-
CLIENT_CERTIFICATE
- See Also:
-
CLIENT_CERTIFICATE_PASSPHRASE
- See Also:
-
SSL_PROTOCOL
- See Also:
-
DATABASE_NAME
- See Also:
-
-
Method Details
-
getMongoConfiguration
MongoConfiguration getMongoConfiguration()Retrieves the MongoDB configuration for the Namazu Elements system.- Returns:
- the
MongoConfigurationcontaining connection details
-