Class CryptoJksAnnotationFormatterFactory

java.lang.Object
com.bld.crypto.jks.formatter.CryptoJksAnnotationFormatterFactory
All Implemented Interfaces:
org.springframework.format.AnnotationFormatterFactory<CryptoJks>

public final class CryptoJksAnnotationFormatterFactory extends Object implements org.springframework.format.AnnotationFormatterFactory<CryptoJks>
A factory for creating CryptoJksAnnotationFormatter objects.
  • Constructor Details

    • CryptoJksAnnotationFormatterFactory

      public CryptoJksAnnotationFormatterFactory(CryptoJksUtils cryptoJksUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper)
      Instantiates a new crypto jks annotation formatter factory.
      Parameters:
      cryptoJksUtils - the crypto jks 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<CryptoJks>
      Returns:
      the field types
    • getPrinter

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

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