Class CryptoAesAnnotationFormatterFactory

java.lang.Object
com.bld.crypto.aes.formatter.CryptoAesAnnotationFormatterFactory
All Implemented Interfaces:
org.springframework.format.AnnotationFormatterFactory<CryptoAes>

public final class CryptoAesAnnotationFormatterFactory extends Object implements org.springframework.format.AnnotationFormatterFactory<CryptoAes>
A factory for creating CryptoAesAnnotationFormatter objects.
  • Constructor Details

    • CryptoAesAnnotationFormatterFactory

      public CryptoAesAnnotationFormatterFactory(CryptoAesUtils cryptoAesUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper)
      Instantiates a new crypto aes annotation formatter factory.
      Parameters:
      cryptoAesUtils - the crypto aes 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<CryptoAes>
      Returns:
      the field types
    • getPrinter

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

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