Class BeanPropertyWriterDelegate
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
-
- com.fasterxml.jackson.databind.ser.PropertyWriter
-
- com.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
- io.fabric8.kubernetes.model.jackson.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.BeanPropertyWriterVariant ofBeanPropertyWriterwhich prevents property values present in theAnnotatedMemberanyGetter 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
SettableBeanPropertyDelegatingto allow the propagation of deserialized properties that don't match the target field types.- See Also:
- Serialized Form
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignNullSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> nullSer)voidassignSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> ser)voidassignTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)voidserializeAsField(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
-
-
-
-
Method Detail
-
serializeAsField
public void serializeAsField(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov) throws Exception
- Overrides:
serializeAsFieldin classcom.fasterxml.jackson.databind.ser.BeanPropertyWriter- Throws:
Exception
-
assignNullSerializer
public void assignNullSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> nullSer)
- Overrides:
assignNullSerializerin classcom.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
assignSerializer
public void assignSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> ser)
- Overrides:
assignSerializerin classcom.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
assignTypeSerializer
public void assignTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
- Overrides:
assignTypeSerializerin classcom.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
-