Top Description Fields Constructors Methods
com.fasterxml.jackson.module.paranamer

public Class ParanamerOnJacksonAnnotationIntrospector

extends JacksonAnnotationIntrospector
Class Inheritance
Imports
com.thoughtworks.paranamer.Paranamer, com.fasterxml.jackson.databind.AnnotationIntrospector, .PropertyName, com.fasterxml.jackson.databind.introspect.*

Stand-alone AnnotationIntrospector that defines functionality to discover names of constructor (and factory method) parameters, on top of default Jackson annotation processing. It can be used as the replacement for vanilla JacksonAnnotationIntrospector.

Field Summary

Modifier and TypeField and Description
protected final SerializableParanamer
_paranamer

Wrapper used to encapsulate actual Paranamer call, to allow serialization of this introspector

private static final long
Inherited from com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector:
_annotationsInside_cfgConstructorPropertiesImpliesCreator

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public String
findImplicitPropertyName(AnnotatedMember param)

Overrides com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findImplicitPropertyName.

Method for finding implicit name for a property that given annotated member (field, method, creator parameter) may represent.

public PropertyName
findNameForDeserialization(Annotated
Annotated entity to check
a
)

Overrides com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findNameForDeserialization.

Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for deserialization (reading JSON into POJOs).

Inherited from com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector:
_classIfExplicit_classIfExplicit_constructNoTypeResolverBuilder_constructStdTypeResolverBuilder_constructStdTypeResolverBuilder_constructVirtualProperty_constructVirtualProperty_findConstructorName_findTypeResolver_isIgnorable_propertyNamefindAndAddVirtualPropertiesfindAutoDetectVisibilityfindClassDescriptionfindContentDeserializerfindContentSerializerfindCreatorAnnotationfindCreatorBindingfindDefaultEnumValuefindDefaultEnumValuefindDeserializationContentConverterfindDeserializationConverterfindDeserializerfindEnumAliasesfindEnumAliasesfindEnumNamingStrategyfindEnumValuefindEnumValuesfindEnumValuesfindFilterIdfindFormatfindInjectableValuefindInjectableValueIdfindKeyDeserializerfindKeySerializerfindMergeInfofindNameForSerializationfindNamingStrategyfindNullSerializerfindObjectIdInfofindObjectReferenceInfofindPOJOBuilderfindPOJOBuilderConfigfindPolymorphicTypeInfofindPropertyAccessfindPropertyAliasesfindPropertyContentTypeResolverfindPropertyDefaultValuefindPropertyDescriptionfindPropertyIgnoralByNamefindPropertyIgnoralsfindPropertyInclusionfindPropertyInclusionByNamefindPropertyIndexfindPropertyTypeResolverfindReferenceTypefindRenameByFieldfindRootNamefindSerializationContentConverterfindSerializationConverterfindSerializationPropertyOrderfindSerializationSortAlphabeticallyfindSerializationTypingfindSerializerfindSetterInfofindSubtypesfindTypeNamefindTypeResolverfindUnwrappingNameTransformerfindValueInstantiatorfindViewshasAnyGetterhasAnyGetterAnnotationhasAnySetterhasAnySetterAnnotationhasAsKeyhasAsValuehasAsValueAnnotationhasCreatorAnnotationhasIgnoreMarkerhasRequiredMarkerisAnnotationBundleisIgnorableTypeisTypeIdreadResolverefineDeserializationTyperefineSerializationTyperesolveSetterConflictsetConstructorPropertiesImpliesCreatorversion

Field Detail

_paranamerback to summary
protected final SerializableParanamer _paranamer

Wrapper used to encapsulate actual Paranamer call, to allow serialization of this introspector

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.serialVersionUID.

Constructor Detail

ParanamerOnJacksonAnnotationIntrospectorback to summary
public ParanamerOnJacksonAnnotationIntrospector()
ParanamerOnJacksonAnnotationIntrospectorback to summary
public ParanamerOnJacksonAnnotationIntrospector(SerializableParanamer pn)
Since
2.7.6
ParanamerOnJacksonAnnotationIntrospectorback to summary
public ParanamerOnJacksonAnnotationIntrospector(Paranamer pn)

Deprecated

since 2.7.6

Annotations
@Deprecated

Method Detail

findImplicitPropertyNameback to summary
public String findImplicitPropertyName(AnnotatedMember param)

Overrides com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findImplicitPropertyName.

Doc from com.fasterxml.jackson.databind.AnnotationIntrospector.findImplicitPropertyName.

Method for finding implicit name for a property that given annotated member (field, method, creator parameter) may represent. This is different from explicit, annotation-based property name, in that it is "weak" and does not either proof that a property exists (for example, if visibility is not high enough), or override explicit names. In practice this method is used to introspect optional names for creator parameters (which may or may not be available and cannot be detected by standard databind); or to provide alternate name mangling for fields, getters and/or setters.

Annotations
@Override
findNameForDeserializationback to summary
public PropertyName findNameForDeserialization(Annotated a)

Overrides com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.findNameForDeserialization.

Doc from com.fasterxml.jackson.databind.AnnotationIntrospector.findNameForDeserialization.

Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for deserialization (reading JSON into POJOs). Should return null if no annotation is found; otherwise a non-null name (possibly PropertyName#USE_DEFAULT, which means "use default heuristics").

Parameters
a:Annotated

Annotated entity to check

Returns:PropertyName

Name to use if found; null if not.

Annotations
@Override