@Requires(property="mongodb") @Requires(classes=com.mongodb.MongoClientOptions.class) @ConfigurationProperties(value="mongodb") public class DefaultMongoConfiguration extends AbstractMongoConfiguration
Modifier and Type | Field and Description |
---|---|
protected com.mongodb.MongoClientOptions.Builder |
clientOptions |
Constructor and Description |
---|
DefaultMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
com.mongodb.MongoClientOptions |
buildOptions() |
com.mongodb.MongoClientURI |
buildURI() |
getApplicationName, getConnectionString, getUri, setUri
@ConfigurationBuilder(prefixes="", configurationPrefix="options") protected com.mongodb.MongoClientOptions.Builder clientOptions
public DefaultMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
applicationConfiguration
- applicationConfigurationpublic com.mongodb.MongoClientOptions buildOptions()
buildOptions
in class AbstractMongoConfiguration
MongoClientOptions
public com.mongodb.MongoClientURI buildURI()