Class TemporalAccessorJsonSerializer<T extends TemporalAccessor>
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
tech.corefinance.common.converter.json.TemporalAccessorJsonSerializer<T>
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable,io.swagger.v3.core.converter.ModelConverter,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
LocalDateSerializer,LocalTimeSerializer,ZonedDateTimeSerializer
@Order
public abstract class TemporalAccessorJsonSerializer<T extends TemporalAccessor>
extends com.fasterxml.jackson.databind.JsonSerializer<T>
implements org.springframework.beans.factory.InitializingBean, io.swagger.v3.core.converter.ModelConverter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected booleanbooleancom.fasterxml.jackson.databind.ObjectMapperorg.springdoc.core.providers.SpringDocProvidersinthashCode()protected voidio.swagger.v3.oas.models.media.Schema<?>resolve(io.swagger.v3.core.converter.AnnotatedType type, io.swagger.v3.core.converter.ModelConverterContext context, Iterator<io.swagger.v3.core.converter.ModelConverter> chain) voidserialize(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) voidsetDateTimeFormat(String dateTimeFormat) voidsetDateTimeFormatter(DateTimeFormatter dateTimeFormatter) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) voidsetSpringDocProviders(org.springdoc.core.providers.SpringDocProviders springDocProviders) toString()Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.swagger.v3.core.converter.ModelConverter
isOpenapi31
-
Constructor Details
-
TemporalAccessorJsonSerializer
-
-
Method Details
-
postConstruct
@PostConstruct protected void postConstruct() -
serialize
public void serialize(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException - Specified by:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<T extends TemporalAccessor>- Throws:
IOException
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
resolve
public io.swagger.v3.oas.models.media.Schema<?> resolve(io.swagger.v3.core.converter.AnnotatedType type, io.swagger.v3.core.converter.ModelConverterContext context, Iterator<io.swagger.v3.core.converter.ModelConverter> chain) - Specified by:
resolvein interfaceio.swagger.v3.core.converter.ModelConverter
-
getDateTimeFormat
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getDateTimeFormatter
-
getSpringDocProviders
public org.springdoc.core.providers.SpringDocProviders getSpringDocProviders() -
setDateTimeFormat
-
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
setDateTimeFormatter
-
setSpringDocProviders
public void setSpringDocProviders(org.springdoc.core.providers.SpringDocProviders springDocProviders) -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-