Class ObjectMapperFactory

java.lang.Object
io.micronaut.jackson.ObjectMapperFactory
io.kestra.core.serializers.ObjectMapperFactory

@Factory @Replaces(io.micronaut.jackson.ObjectMapperFactory.class) public class ObjectMapperFactory extends io.micronaut.jackson.ObjectMapperFactory
hard copy from {link io.micronaut.jackson.ObjectMapperFactory} just to change the serializer BeanSerializerFactoryWithGlobalIncludeDefaults and to force the global ClassLoader.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.fasterxml.jackson.databind.deser.BeanDeserializerModifier[]
     
    protected com.fasterxml.jackson.databind.ser.BeanSerializerModifier[]
     
    protected com.fasterxml.jackson.databind.JsonDeserializer[]
     
    protected com.fasterxml.jackson.databind.Module[]
     
    protected com.fasterxml.jackson.databind.KeyDeserializer[]
     
    static final String
    Name for Micronaut module.
    protected com.fasterxml.jackson.databind.JsonSerializer[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.ObjectMapper
    objectMapper(io.micronaut.jackson.JacksonConfiguration jacksonConfiguration, com.fasterxml.jackson.core.JsonFactory jsonFactory)
     

    Methods inherited from class io.micronaut.jackson.ObjectMapperFactory

    jsonFactory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MICRONAUT_MODULE

      public static final String MICRONAUT_MODULE
      Name for Micronaut module.
      See Also:
    • jacksonModules

      @Inject protected com.fasterxml.jackson.databind.Module[] jacksonModules
    • serializers

      @Inject protected com.fasterxml.jackson.databind.JsonSerializer[] serializers
    • deserializers

      @Inject protected com.fasterxml.jackson.databind.JsonDeserializer[] deserializers
    • beanSerializerModifiers

      @Inject protected com.fasterxml.jackson.databind.ser.BeanSerializerModifier[] beanSerializerModifiers
    • beanDeserializerModifiers

      @Inject protected com.fasterxml.jackson.databind.deser.BeanDeserializerModifier[] beanDeserializerModifiers
    • keyDeserializers

      @Inject protected com.fasterxml.jackson.databind.KeyDeserializer[] keyDeserializers
  • Constructor Details

    • ObjectMapperFactory

      public ObjectMapperFactory()
  • Method Details

    • objectMapper

      @Singleton @Secondary @Named("json") public com.fasterxml.jackson.databind.ObjectMapper objectMapper(@Nullable io.micronaut.jackson.JacksonConfiguration jacksonConfiguration, @Nullable com.fasterxml.jackson.core.JsonFactory jsonFactory)
      Overrides:
      objectMapper in class io.micronaut.jackson.ObjectMapperFactory