public class MappingAerospikeConverter extends AbstractAerospoikeConverter implements org.springframework.context.ApplicationContextAware
AerospikeConverter to read domain objects from AerospikeReadData and write domain
objects into AerospikeWriteData.instantiators| Constructor and Description |
|---|
MappingAerospikeConverter(AerospikeMappingContext mappingContext,
AerospikeTypeAliasAccessor aerospikeTypeAliasAccessor,
org.springframework.data.convert.CustomConversions customConversions)
Creates a new
MappingAerospikeConverter. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.mapping.context.MappingContext<? extends AerospikePersistentEntity<?>,AerospikePersistentProperty> |
getMappingContext()
Returns the underlying
MappingContext used by the converter. |
<R> R |
read(java.lang.Class<R> type,
AerospikeData data) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
write(java.lang.Object source,
AerospikeData sink) |
afterPropertiesSetpublic MappingAerospikeConverter(AerospikeMappingContext mappingContext, AerospikeTypeAliasAccessor aerospikeTypeAliasAccessor, org.springframework.data.convert.CustomConversions customConversions)
MappingAerospikeConverter.public org.springframework.data.mapping.context.MappingContext<? extends AerospikePersistentEntity<?>,AerospikePersistentProperty> getMappingContext()
MappingContext used by the converter.getMappingContext in interface org.springframework.data.convert.EntityConverter<AerospikePersistentEntity<?>,AerospikePersistentProperty,java.lang.Object,AerospikeData>public <R> R read(java.lang.Class<R> type,
AerospikeData data)
read in interface org.springframework.data.convert.EntityReader<java.lang.Object,AerospikeData>public void write(java.lang.Object source,
AerospikeData sink)
write in interface org.springframework.data.convert.EntityWriter<java.lang.Object,AerospikeData>public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException