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
Constructors Constructor Description CryptoPubKeyAnnotationFormatterFactory(CryptoPublicKeyUtils cryptoPubKeyUtils, com.fasterxml.jackson.databind.ObjectMapper objMapper)Instantiates a new crypto pub key 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(CryptoPubKey annotation, Class<?> fieldType)Gets the parser.org.springframework.format.Printer<?>getPrinter(CryptoPubKey annotation, Class<?> fieldType)Gets the printer.
-
-
-
Constructor Detail
-
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 Detail
-
getFieldTypes
public Set<Class<?>> 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
public org.springframework.format.Parser<?> getParser(CryptoPubKey annotation, Class<?> fieldType)
Gets the parser.- Specified by:
getParserin interfaceorg.springframework.format.AnnotationFormatterFactory<CryptoPubKey>- Parameters:
annotation- the annotationfieldType- the field type- Returns:
- the parser
-
-