Package org.springframework.data.convert
Class CustomConversions.ConverterConfiguration
java.lang.Object
org.springframework.data.convert.CustomConversions.ConverterConfiguration
- Enclosing class:
- CustomConversions
Value object holding the actual
CustomConversions.StoreConversions
and custom converters
configured for
registration.- Since:
- 2.3
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorDescriptionConverterConfiguration
(CustomConversions.StoreConversions storeConversions, List<?> userConverters) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversions
and user defined converters.ConverterConfiguration
(CustomConversions.StoreConversions storeConversions, List<?> userConverters, Predicate<GenericConverter.ConvertiblePair> converterRegistrationFilter) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversions
and user defined converters as well as aCollection
ofGenericConverter.ConvertiblePair
for which to skip the registration of default converters.ConverterConfiguration
(CustomConversions.StoreConversions storeConversions, List<?> userConverters, Predicate<GenericConverter.ConvertiblePair> converterRegistrationFilter, PropertyValueConversions propertyValueConversions) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversions
and user defined converters as well as aCollection
ofGenericConverter.ConvertiblePair
for which to skip the registration of default converters. -
Method Summary
-
Constructor Details
-
ConverterConfiguration
public ConverterConfiguration(CustomConversions.StoreConversions storeConversions, List<?> userConverters) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversions
and user defined converters.- Parameters:
storeConversions
- must not be null.userConverters
- must not be null useCollections.emptyList()
instead.
-
ConverterConfiguration
public ConverterConfiguration(CustomConversions.StoreConversions storeConversions, List<?> userConverters, Predicate<GenericConverter.ConvertiblePair> converterRegistrationFilter) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversions
and user defined converters as well as aCollection
ofGenericConverter.ConvertiblePair
for which to skip the registration of default converters.
This allows store implementations to modify default converter registration based on specific needs and configurations. User defined converters will are never subject of filtering.- Parameters:
storeConversions
- must not be null.userConverters
- must not be null useCollections.emptyList()
instead.converterRegistrationFilter
- must not be null..
-
ConverterConfiguration
public ConverterConfiguration(@NonNull CustomConversions.StoreConversions storeConversions, @NonNull List<?> userConverters, @NonNull Predicate<GenericConverter.ConvertiblePair> converterRegistrationFilter, @Nullable PropertyValueConversions propertyValueConversions) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversions
and user defined converters as well as aCollection
ofGenericConverter.ConvertiblePair
for which to skip the registration of default converters.
This allows store implementations to modify default converter registration based on specific needs and configurations. User defined converters will are never subject of filtering.- Parameters:
storeConversions
- must not be null.userConverters
- must not be null useCollections.emptyList()
instead.converterRegistrationFilter
- must not be null.propertyValueConversions
- can be null.- Since:
- 2.7
-
-
Method Details
-
getPropertyValueConversions
- Returns:
- the configured
PropertyValueConversions
if set, null otherwise. - Since:
- 2.7
-