public class GuiceAnnotationIntrospector
extends com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector
Constructor and Description |
---|
GuiceAnnotationIntrospector() |
Modifier and Type | Method and Description |
---|---|
Object |
findInjectableValueId(com.fasterxml.jackson.databind.introspect.AnnotatedMember m) |
com.fasterxml.jackson.annotation.JsonIgnoreProperties.Value |
findPropertyIgnorals(com.fasterxml.jackson.databind.introspect.Annotated ac)
This method is used to find what property to ignore in deserialization.
|
version
_findAnnotation, _hasAnnotation, _hasOneOf, allIntrospectors, allIntrospectors, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationKeyType, findDeserializationType, findDeserializer, findEnumValue, findEnumValues, findFilterId, findFormat, findIgnoreUnknownProperties, findImplicitPropertyName, findInjectableValue, findKeyDeserializer, findKeySerializer, findMergeInfo, findNameForDeserialization, findNameForSerialization, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findPropertiesToIgnore, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyInclusion, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findRootName, findSerializationContentConverter, findSerializationContentType, findSerializationConverter, findSerializationInclusion, findSerializationInclusionForContent, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, findWrapperName, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, nopInstance, pair, refineDeserializationType, refineSerializationType, resolveSetterConflict
public Object findInjectableValueId(com.fasterxml.jackson.databind.introspect.AnnotatedMember m)
findInjectableValueId
in class com.fasterxml.jackson.databind.AnnotationIntrospector
public com.fasterxml.jackson.annotation.JsonIgnoreProperties.Value findPropertyIgnorals(com.fasterxml.jackson.databind.introspect.Annotated ac)
JsonIgnoreProperties.Value#empty()
that allows empty names if
the parameters has the JsonProperty
annotation. Otherwise, it returns
JsonIgnoreProperties.Value.forIgnoredProperties("")
that does NOT allow empty names.
This behavior is to work around a bug in Jackson deserializer (see the below comment for details) and
can be removed in the future after the bug is fixed.
For example, suppose a constructor like below:
{@code
findPropertyIgnorals
in class com.fasterxml.jackson.databind.AnnotationIntrospector
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.