Class CassandraCustomConversions
java.lang.Object
org.springframework.data.convert.CustomConversions
org.springframework.data.cassandra.core.convert.CassandraCustomConversions
Value object to capture custom conversion.
CassandraCustomConversions also act as factory for
SimpleTypeHolder- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCassandraCustomConversions.CassandraConverterConfigurationAdapterencapsulates creation ofCustomConversions.ConverterConfigurationwith Cassandra specifics.Nested classes/interfaces inherited from class CustomConversions
CustomConversions.ConverterConfiguration, CustomConversions.ConverterRegistrationIntent, CustomConversions.StoreConversions -
Constructor Summary
ConstructorsModifierConstructorDescriptionCassandraCustomConversions(List<?> converters) Create a newCassandraCustomConversionsinstance registering the given converters.protectedCassandraCustomConversions(CassandraCustomConversions.CassandraConverterConfigurationAdapter conversionConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic CassandraCustomConversionsFunctional styleCustomConversionscreation giving users a convenient way of configuring store specific capabilities by providing deferred hooks to what will be configured when creating theinstance.
-
Constructor Details
-
CassandraCustomConversions
Create a newCassandraCustomConversionsinstance registering the given converters.- Parameters:
converters- must not be null.
-
CassandraCustomConversions
protected CassandraCustomConversions(CassandraCustomConversions.CassandraConverterConfigurationAdapter conversionConfiguration) Create a newCassandraCustomConversionsgivenCassandraCustomConversions.CassandraConverterConfigurationAdapter.- Parameters:
conversionConfiguration- must not be null.- Since:
- 4.2
-
-
Method Details
-
create
public static CassandraCustomConversions create(Consumer<CassandraCustomConversions.CassandraConverterConfigurationAdapter> configurer) Functional styleCustomConversionscreation giving users a convenient way of configuring store specific capabilities by providing deferred hooks to what will be configured when creating theinstance.- Parameters:
configurer- must not be null.- Since:
- 4.2
-