public class MongoPropertiesClientSettingsBuilderCustomizer extends Object implements MongoClientSettingsBuilderCustomizer, Ordered
MongoClientSettingsBuilderCustomizer
that applies properties from a
MongoProperties
to a MongoClientSettings
.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
MongoPropertiesClientSettingsBuilderCustomizer(MongoProperties properties,
Environment environment) |
Modifier and Type | Method and Description |
---|---|
void |
customize(com.mongodb.MongoClientSettings.Builder settingsBuilder)
Customize the
MongoClientSettings.Builder . |
int |
getOrder() |
void |
setOrder(int order)
Set the order value of this object.
|
public MongoPropertiesClientSettingsBuilderCustomizer(MongoProperties properties, Environment environment)
public void customize(com.mongodb.MongoClientSettings.Builder settingsBuilder)
MongoClientSettingsBuilderCustomizer
MongoClientSettings.Builder
.customize
in interface MongoClientSettingsBuilderCustomizer
settingsBuilder
- the builder to customizepublic void setOrder(int order)
order
- the new order valuegetOrder()