Class DefaultVaultTypeMapper

java.lang.Object
org.springframework.data.convert.DefaultTypeMapper<Map<String,Object>>
org.springframework.vault.repository.convert.DefaultVaultTypeMapper
All Implemented Interfaces:
Aware, BeanClassLoaderAware, TypeMapper<Map<String,Object>>, VaultTypeMapper

public class DefaultVaultTypeMapper extends DefaultTypeMapper<Map<String,Object>> implements VaultTypeMapper
Default implementation of VaultTypeMapper allowing configuration of the key to lookup and store type information in SecretDocument. The key defaults to DEFAULT_TYPE_KEY. Actual type-to-String conversion and back is done in DefaultTypeMapper.readType(S) or DefaultTypeMapper.getDefaultedTypeToBeUsed(S). respectively.
Since:
2.0
Author:
Mark Paluch
  • Field Details

  • Constructor Details

    • DefaultVaultTypeMapper

      public DefaultVaultTypeMapper()
      Create a default VaultTypeMapper that exchanges types using the type key _class.
    • DefaultVaultTypeMapper

      public DefaultVaultTypeMapper(@Nullable String typeKey)
      Create a default VaultTypeMapper that exchanges types using the given typeKey.
      Parameters:
      typeKey - may not be null to disable type hinting.
    • DefaultVaultTypeMapper

      public DefaultVaultTypeMapper(@Nullable String typeKey, MappingContext<? extends PersistentEntity<?,?>,?> mappingContext)
      Create a default VaultTypeMapper that exchanges types using the given typeKey and MappingContext.
      Parameters:
      typeKey - may not be null to disable type hinting.
      mappingContext - must not be null or empty.
    • DefaultVaultTypeMapper

      public DefaultVaultTypeMapper(@Nullable String typeKey, List<? extends TypeInformationMapper> mappers)
  • Method Details