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
Modifier and TypeFieldDescriptionprotected CustomConversions
protected final GenericConversionService
protected EntityInstantiators
-
Constructor Summary
ConstructorDescriptionAbstractVaultConverter
(GenericConversionService conversionService) Creates a newAbstractVaultConverter
using the givenGenericConversionService
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setCustomConversions
(CustomConversions conversions) Registers the given custom conversions with the converter.void
setInstantiators
(EntityInstantiators instantiators) RegistersEntityInstantiators
to customize entity instantiation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.convert.EntityConverter
getMappingContext
Methods inherited from interface org.springframework.data.convert.EntityReader
read
Methods inherited from interface org.springframework.data.convert.EntityWriter
write
-
Field Details
-
conversionService
-
conversions
-
instantiators
-
-
Constructor Details
-
AbstractVaultConverter
Creates a newAbstractVaultConverter
using the givenGenericConversionService
.- Parameters:
conversionService
- must not be null.
-
-
Method Details
-
setCustomConversions
Registers the given custom conversions with the converter.- Parameters:
conversions
-
-
setInstantiators
RegistersEntityInstantiators
to customize entity instantiation.- Parameters:
instantiators
-
-
getConversionService
- Specified by:
getConversionService
in interfaceEntityConverter<VaultPersistentEntity<?>,
VaultPersistentProperty, Object, SecretDocument>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-