Class BeanSerializer

All Implemented Interfaces:
JsonFormatVisitable, SchemaAware, ContextualSerializer, ResolvableSerializer, Serializable

public class BeanSerializer extends BeanSerializerBase
Serializer class that can serialize Java objects that map to JSON Object output. Internally handling is mostly dealt with by a sequence of BeanPropertyWriters that will handle access value to serialize and call appropriate serializers to write out JSON.

Implementation note: we will post-process resulting serializer, to figure out actual serializers for final types. This must be done from BeanSerializerBase.resolve(com.fasterxml.jackson.databind.SerializerProvider) method, and NOT from constructor; otherwise we could end up with an infinite loop.

See Also:
  • Constructor Details

    • BeanSerializer

      public BeanSerializer(JavaType type, BeanSerializerBuilder builder, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties)
      Parameters:
      builder - Builder object that contains collected information that may be needed for serializer
      properties - Property writers used for actual serialization
  • Method Details