Class AbstractVaultConverter
java.lang.Object
org.springframework.vault.repository.convert.AbstractVaultConverter
- All Implemented Interfaces:
InitializingBean,EntityConverter<VaultPersistentEntity<?>,,VaultPersistentProperty, Object, SecretDocument> EntityReader<Object,,SecretDocument> EntityWriter<Object,,SecretDocument> VaultConverter
- Direct Known Subclasses:
MappingVaultConverter
public abstract class AbstractVaultConverter
extends Object
implements VaultConverter, InitializingBean
Base class for
VaultConverter implementations. Sets up a
GenericConversionService and populates basic converters.- Since:
- 2.0
- Author:
- Mark Paluch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CustomConversionsprotected final GenericConversionServiceprotected EntityInstantiators -
Constructor Summary
ConstructorsConstructorDescriptionAbstractVaultConverter(GenericConversionService conversionService) Creates a newAbstractVaultConverterusing the givenGenericConversionService. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetCustomConversions(CustomConversions conversions) Registers the given custom conversions with the converter.voidsetInstantiators(EntityInstantiators instantiators) RegistersEntityInstantiatorsto customize entity instantiation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.convert.EntityConverter
getMappingContextMethods inherited from interface org.springframework.data.convert.EntityReader
readMethods inherited from interface org.springframework.data.convert.EntityWriter
write
-
Field Details
-
conversionService
-
conversions
-
instantiators
-
-
Constructor Details
-
AbstractVaultConverter
Creates a newAbstractVaultConverterusing the givenGenericConversionService.- Parameters:
conversionService- must not be null.
-
-
Method Details
-
setCustomConversions
Registers the given custom conversions with the converter.- Parameters:
conversions-
-
setInstantiators
RegistersEntityInstantiatorsto customize entity instantiation.- Parameters:
instantiators-
-
getConversionService
- Specified by:
getConversionServicein interfaceEntityConverter<VaultPersistentEntity<?>,VaultPersistentProperty, Object, SecretDocument>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-