Package com.bld.crypto.aes.formatter
Class CryptoAesAnnotationFormatterFactory
- java.lang.Object
-
- com.bld.crypto.aes.formatter.CryptoAesAnnotationFormatterFactory
-
-
Constructor Summary
Constructors Constructor Description CryptoAesAnnotationFormatterFactory(CryptoAesUtils cryptoAesUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper)Instantiates a new crypto aes annotation formatter factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Class<?>>getFieldTypes()Gets the field types.org.springframework.format.Parser<?>getParser(CryptoAes annotation, Class<?> fieldType)Gets the parser.org.springframework.format.Printer<?>getPrinter(CryptoAes annotation, Class<?> fieldType)Gets the printer.
-
-
-
Constructor Detail
-
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 Detail
-
getFieldTypes
public Set<Class<?>> getFieldTypes()
Gets the field types.- Specified by:
getFieldTypesin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoAes>- Returns:
- the field types
-
getPrinter
public org.springframework.format.Printer<?> getPrinter(CryptoAes annotation, Class<?> fieldType)
Gets the printer.- Specified by:
getPrinterin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoAes>- Parameters:
annotation- the annotationfieldType- the field type- Returns:
- the printer
-
getParser
public org.springframework.format.Parser<?> getParser(CryptoAes annotation, Class<?> fieldType)
Gets the parser.- Specified by:
getParserin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoAes>- Parameters:
annotation- the annotationfieldType- the field type- Returns:
- the parser
-
-