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
ConstructorsConstructorDescriptionConverterConfiguration(CustomConversions.StoreConversions storeConversions, List<?> userConverters) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversionsand user defined converters.ConverterConfiguration(CustomConversions.StoreConversions storeConversions, List<?> userConverters, Predicate<GenericConverter.ConvertiblePair> converterRegistrationFilter) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversionsand user defined converters as well as aCollectionofGenericConverter.ConvertiblePairfor 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.StoreConversionsand user defined converters as well as aCollectionofGenericConverter.ConvertiblePairfor 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.StoreConversionsand 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.StoreConversionsand user defined converters as well as aCollectionofGenericConverter.ConvertiblePairfor 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(CustomConversions.StoreConversions storeConversions, List<?> userConverters, Predicate<GenericConverter.ConvertiblePair> converterRegistrationFilter, @Nullable PropertyValueConversions propertyValueConversions) Create a new ConverterConfiguration holding the givenCustomConversions.StoreConversionsand user defined converters as well as aCollectionofGenericConverter.ConvertiblePairfor 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
PropertyValueConversionsif set, null otherwise. - Since:
- 2.7
-