Class BeanPropertyWriterDelegate

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.BeanProperty, com.fasterxml.jackson.databind.util.Named, Serializable

    public class BeanPropertyWriterDelegate
    extends com.fasterxml.jackson.databind.ser.BeanPropertyWriter
    Variant of BeanPropertyWriter which prevents property values present in the AnnotatedMember anyGetter to be serialized twice.

    Any property that's present in the anyGetter is ignored upon serialization. The values present in the anyGetter take precedence over those stored in the Bean's fields.

    This BeanPropertyWriter implementation is intended to be used in combination with the SettableBeanPropertyDelegating to allow the propagation of deserialized properties that don't match the target field types.

    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty

        com.fasterxml.jackson.databind.BeanProperty.Bogus, com.fasterxml.jackson.databind.BeanProperty.Std
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter

        _accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY
      • Fields inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase

        _aliases, _metadata
      • Fields inherited from interface com.fasterxml.jackson.databind.BeanProperty

        EMPTY_FORMAT, EMPTY_INCLUDE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assignNullSerializer​(com.fasterxml.jackson.databind.JsonSerializer<Object> nullSer)  
      void assignSerializer​(com.fasterxml.jackson.databind.JsonSerializer<Object> ser)  
      void assignTypeSerializer​(com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)  
      void serializeAsField​(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov)  
      • Methods inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter

        _depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, depositSchemaProperty, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsElement, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithName
      • Methods inherited from class com.fasterxml.jackson.databind.ser.PropertyWriter

        findAnnotation
      • Methods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase

        findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
    • Method Detail

      • serializeAsField

        public void serializeAsField​(Object bean,
                                     com.fasterxml.jackson.core.JsonGenerator gen,
                                     com.fasterxml.jackson.databind.SerializerProvider prov)
                              throws Exception
        Overrides:
        serializeAsField in class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
        Throws:
        Exception
      • assignNullSerializer

        public void assignNullSerializer​(com.fasterxml.jackson.databind.JsonSerializer<Object> nullSer)
        Overrides:
        assignNullSerializer in class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
      • assignSerializer

        public void assignSerializer​(com.fasterxml.jackson.databind.JsonSerializer<Object> ser)
        Overrides:
        assignSerializer in class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
      • assignTypeSerializer

        public void assignTypeSerializer​(com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
        Overrides:
        assignTypeSerializer in class com.fasterxml.jackson.databind.ser.BeanPropertyWriter