Package com.bld.crypto.pubkey.formatter
Class CryptoPubKeyAnnotationFormatterFactory
java.lang.Object
com.bld.crypto.pubkey.formatter.CryptoPubKeyAnnotationFormatterFactory
- All Implemented Interfaces:
org.springframework.format.AnnotationFormatterFactory<CryptoPubKey>
public final class CryptoPubKeyAnnotationFormatterFactory
extends Object
implements org.springframework.format.AnnotationFormatterFactory<CryptoPubKey>
A factory for creating CryptoPubKeyAnnotationFormatter objects.
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoPubKeyAnnotationFormatterFactory(CryptoPublicKeyUtils cryptoPubKeyUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper) Instantiates a new crypto pub key annotation formatter factory. -
Method Summary
Modifier and TypeMethodDescriptionGets the field types.org.springframework.format.Parser<?> getParser(CryptoPubKey annotation, Class<?> fieldType) Gets the parser.org.springframework.format.Printer<?> getPrinter(CryptoPubKey annotation, Class<?> fieldType) Gets the printer.
-
Constructor Details
-
CryptoPubKeyAnnotationFormatterFactory
public CryptoPubKeyAnnotationFormatterFactory(CryptoPublicKeyUtils cryptoPubKeyUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper) Instantiates a new crypto pub key annotation formatter factory.- Parameters:
cryptoPubKeyUtils- the crypto pub key utilsobjMapper- the obj mapper
-
-
Method Details
-
getFieldTypes
Gets the field types.- Specified by:
getFieldTypesin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoPubKey>- Returns:
- the field types
-
getPrinter
public org.springframework.format.Printer<?> getPrinter(CryptoPubKey annotation, Class<?> fieldType) Gets the printer.- Specified by:
getPrinterin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoPubKey>- Parameters:
annotation- the annotationfieldType- the field type- Returns:
- the printer
-
getParser
Gets the parser.- Specified by:
getParserin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoPubKey>- Parameters:
annotation- the annotationfieldType- the field type- Returns:
- the parser
-