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