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:
BeanProperty,Named,Serializable
public class BeanPropertyWriterDelegate extends BeanPropertyWriter
Variant 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
BeanProperty.Bogus, 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 voidassignNullSerializer(JsonSerializer<Object> nullSer)voidassignSerializer(JsonSerializer<Object> ser)voidassignTypeSerializer(TypeSerializer typeSer)voidserializeAsField(Object bean, JsonGenerator gen, 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, JsonGenerator gen, SerializerProvider prov) throws Exception
- Overrides:
serializeAsFieldin classBeanPropertyWriter- Throws:
Exception
-
assignNullSerializer
public void assignNullSerializer(JsonSerializer<Object> nullSer)
- Overrides:
assignNullSerializerin classBeanPropertyWriter
-
assignSerializer
public void assignSerializer(JsonSerializer<Object> ser)
- Overrides:
assignSerializerin classBeanPropertyWriter
-
assignTypeSerializer
public void assignTypeSerializer(TypeSerializer typeSer)
- Overrides:
assignTypeSerializerin classBeanPropertyWriter
-
-