public class MongoCustomConversions
extends org.springframework.data.convert.CustomConversions
MongoCustomConversions also act as factory for
SimpleTypeHolderCustomConversions,
SimpleTypeHolder,
MongoSimpleTypes| Modifier and Type | Class and Description |
|---|---|
static class |
MongoCustomConversions.MongoConverterConfigurationAdapter
MongoCustomConversions.MongoConverterConfigurationAdapter encapsulates creation of
CustomConversions.ConverterConfiguration with MongoDB specifics. |
org.springframework.data.convert.CustomConversions.ConverterConfiguration, org.springframework.data.convert.CustomConversions.ConverterRegistrationIntent, org.springframework.data.convert.CustomConversions.StoreConversions| Modifier | Constructor and Description |
|---|---|
|
MongoCustomConversions(List<?> converters)
Create a new
MongoCustomConversions instance registering the given converters. |
protected |
MongoCustomConversions(MongoCustomConversions.MongoConverterConfigurationAdapter conversionConfiguration)
Create a new
MongoCustomConversions given MongoCustomConversions.MongoConverterConfigurationAdapter. |
| Modifier and Type | Method and Description |
|---|---|
static MongoCustomConversions |
create(Consumer<MongoCustomConversions.MongoConverterConfigurationAdapter> configurer)
Functional style
CustomConversions creation giving users a convenient way
of configuring store specific capabilities by providing deferred hooks to what will be configured when creating the
instance. |
public MongoCustomConversions(List<?> converters)
MongoCustomConversions instance registering the given converters.converters - must not be null.protected MongoCustomConversions(MongoCustomConversions.MongoConverterConfigurationAdapter conversionConfiguration)
MongoCustomConversions given MongoCustomConversions.MongoConverterConfigurationAdapter.conversionConfiguration - must not be null.public static MongoCustomConversions create(Consumer<MongoCustomConversions.MongoConverterConfigurationAdapter> configurer)
CustomConversions creation giving users a convenient way
of configuring store specific capabilities by providing deferred hooks to what will be configured when creating the
instance.configurer - must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.