Package com.bld.crypto.jks.formatter
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 Summary
ConstructorsConstructorDescriptionCryptoJksAnnotationFormatterFactory(CryptoJksUtils cryptoJksUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper) Instantiates a new crypto jks annotation formatter factory. -
Method Summary
Modifier and TypeMethodDescriptionGets the field types.org.springframework.format.Parser<?> Gets the parser.org.springframework.format.Printer<?> getPrinter(CryptoJks annotation, Class<?> fieldType) Gets the printer.
-
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 utilsobjMapper- the obj mapper
-
-
Method Details
-
getFieldTypes
Gets the field types.- Specified by:
getFieldTypesin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoJks>- Returns:
- the field types
-
getPrinter
Gets the printer.- Specified by:
getPrinterin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoJks>- Parameters:
annotation- the annotationfieldType- the field type- Returns:
- the printer
-
getParser
Gets the parser.- Specified by:
getParserin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoJks>- Parameters:
annotation- the annotationfieldType- the field type- Returns:
- the parser
-