Class CryptoPubKeyAnnotationFormatterFactory

java.lang.Object
com.bld.crypto.pubkey.formatter.CryptoPubKeyAnnotationFormatterFactory
All Implemented Interfaces:
org.springframework.format.AnnotationFormatterFactory<CryptoPubKey>

public final class CryptoPubKeyAnnotationFormatterFactory extends Object implements org.springframework.format.AnnotationFormatterFactory<CryptoPubKey>
A factory for creating CryptoPubKeyAnnotationFormatter objects.
  • Constructor Details

    • CryptoPubKeyAnnotationFormatterFactory

      public CryptoPubKeyAnnotationFormatterFactory(CryptoPublicKeyUtils cryptoPubKeyUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper)
      Instantiates a new crypto pub key annotation formatter factory.
      Parameters:
      cryptoPubKeyUtils - the crypto pub key utils
      objMapper - the obj mapper
  • Method Details

    • getFieldTypes

      public Set<Class<?>> getFieldTypes()
      Gets the field types.
      Specified by:
      getFieldTypes in interface org.springframework.format.AnnotationFormatterFactory<CryptoPubKey>
      Returns:
      the field types
    • getPrinter

      public org.springframework.format.Printer<?> getPrinter(CryptoPubKey annotation, Class<?> fieldType)
      Gets the printer.
      Specified by:
      getPrinter in interface org.springframework.format.AnnotationFormatterFactory<CryptoPubKey>
      Parameters:
      annotation - the annotation
      fieldType - the field type
      Returns:
      the printer
    • getParser

      public org.springframework.format.Parser<?> getParser(CryptoPubKey annotation, Class<?> fieldType)
      Gets the parser.
      Specified by:
      getParser in interface org.springframework.format.AnnotationFormatterFactory<CryptoPubKey>
      Parameters:
      annotation - the annotation
      fieldType - the field type
      Returns:
      the parser