Class CustomConversions.ConverterConfiguration

java.lang.Object
org.springframework.data.convert.CustomConversions.ConverterConfiguration
Enclosing class:
CustomConversions

protected static class CustomConversions.ConverterConfiguration extends Object
Value object holding the actual CustomConversions.StoreConversions and custom converters configured for registration.
Since:
2.3
Author:
Christoph Strobl
  • Constructor Details

    • ConverterConfiguration

      public ConverterConfiguration(CustomConversions.StoreConversions storeConversions, List<?> userConverters)
      Create a new ConverterConfiguration holding the given CustomConversions.StoreConversions and user defined converters.
      Parameters:
      storeConversions - must not be null.
      userConverters - must not be null use Collections.emptyList() instead.
    • ConverterConfiguration

      public ConverterConfiguration(CustomConversions.StoreConversions storeConversions, List<?> userConverters, Predicate<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> converterRegistrationFilter)
      Create a new ConverterConfiguration holding the given CustomConversions.StoreConversions and user defined converters as well as a Collection of GenericConverter.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 use Collections.emptyList() instead.
      converterRegistrationFilter - must not be null..
    • ConverterConfiguration

      public ConverterConfiguration(@NonNull CustomConversions.StoreConversions storeConversions, @NonNull List<?> userConverters, @NonNull Predicate<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> converterRegistrationFilter, @Nullable PropertyValueConversions propertyValueConversions)
      Create a new ConverterConfiguration holding the given CustomConversions.StoreConversions and user defined converters as well as a Collection of GenericConverter.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 use Collections.emptyList() instead.
      converterRegistrationFilter - must not be null.
      propertyValueConversions - can be null.
      Since:
      2.7
  • Method Details