AnnotationIntrospector implementation that handles standard
Jackson annotations.
| Modifier and Type | Field and Description |
|---|---|
| protected transient LRUMap | _annotationsInside
Since introspection of annotation types is a performance issue in some use cases (rare, but do exist), let's try a simple cache to reduce need for actual meta-annotation introspection. |
| protected boolean | |
| private static final Java7Support | |
| private static final Class | |
| private static final Class | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Class | |
| protected Class | |
| protected StdTypeResolverBuilder | _constructNoTypeResolverBuilder()
Helper method for dealing with "no type info" marker; can't be null (as it'd be replaced by default typing) |
| protected StdTypeResolverBuilder | _constructStdTypeResolverBuilder()
Helper method for constructing standard |
| protected TypeResolverBuilder | _constructStdTypeResolverBuilder(MapperConfig<?> config, JsonTypeInfo.
Helper method for constructing standard |
| protected BeanPropertyWriter | _constructVirtualProperty(JsonAppend.
|
| protected BeanPropertyWriter | |
| private JsonMappingException | |
| private JsonMappingException | |
| protected PropertyName | |
| private final Boolean | |
| protected TypeResolverBuilder | _findTypeResolver(MapperConfig<?> config, Annotated ann, JavaType baseType)
Helper method called to construct and initialize instance of |
| protected boolean | |
| private boolean | |
| private boolean | |
| protected PropertyName | |
| private JsonInclude. | |
| public void | findAndAddVirtualProperties(MapperConfig<?> config, AnnotatedClass ac, List<BeanPropertyWriter> properties)
Overrides com. Method for adding possible virtual properties to be serialized along with regular properties. |
| public VisibilityChecker | findAutoDetectVisibility(AnnotatedClass
Annotated class to introspect ac, VisibilityChecker<?> Default visibility settings in effect before any override checker)Overrides com. Method for checking if annotations indicate changes to minimum visibility levels needed for auto-detecting property elements (fields, methods, constructors). |
| public String | findClassDescription(AnnotatedClass
Annotated class to introspect ac)Overrides com. Method used to check whether specified class defines a human-readable description to use for documentation. |
| public Object | findContentDeserializer(Annotated a)
Overrides com. Method for getting a deserializer definition for content (values) of
associated |
| public Object | findContentSerializer(Annotated a)
Overrides com. Method for getting a serializer definition for content (values) of
associated |
| public JsonCreator. | findCreatorAnnotation(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, Annotated Annotated accessor (usually constructor or static method) to check a)Overrides com. Method called to check whether potential Creator (constructor or static factory
method) has explicit annotation to indicate it as actual Creator; and if so,
which |
| public JsonCreator. | findCreatorBinding(Annotated
Annotated entity to check a)Overrides com.
Deprecated
Method for finding indication of creator binding mode for
a creator (something for which |
| public Enum | findDefaultEnumValue(Class<Enum<?>>
The Enum class to scan for the default value enumCls)Overrides com.
Deprecated
Finds the Enum value that should be considered the default value, if possible. |
| public Enum | Returns: null if none found or it's not possible to determine one.The Enum class to scan for the default value annotation. annotatedClass, Enum<?>[] The Enum values of the Enum class. enumValues)Overrides com. Finds the Enum value that should be considered the default value, if possible. |
| public Object | findDeserializationContentConverter(AnnotatedMember
Annotated property (field, method) to check. a)Overrides com. Method for finding |
| public Object | findDeserializationConverter(Annotated
Annotated property (field, method) or class to check for
annotations a)Overrides com. Method for finding |
| public Object | findDeserializer(Annotated a)
Overrides com. Method for getting a deserializer definition on specified method or field. |
| public void | findEnumAliases(Class<?>
Type of Enumeration enumType, Enum<?>[] Values of enumeration enumValues, String[][] (in/out) Pre-allocated array where aliases found, if any, may be
added (in indexes matching those of aliasList)enumValues)Overrides com.
Deprecated
Method that is related to |
| public void | findEnumAliases(MapperConfig<?>
The configuration of the mapper config, AnnotatedClass The annotated class of the enumeration type annotatedClass, Enum<?>[] The values of the enumeration enumValues, String[][] (in/out) Pre-allocated array where aliases found, if any, may be added (in indexes
matching those of aliasList)enumValues)Overrides com. Method that is called to check if there are alternative names (aliases) that can be accepted for entries
in addition to primary names that were introspected earlier, related to |
| public Object | findEnumNamingStrategy(MapperConfig<?> config, AnnotatedClass
Annotated class to introspect ac)Overrides com. Method for finding |
| public String | findEnumValue(Enum<?>
Enum value to introspect value)Overrides com.
Deprecated
Since 2.6, we have supported use of |
| public String[] | findEnumValues(Class<?>
Type of Enumeration enumType, Enum<?>[] Values of enumeration enumValues, String[] Matching declared names of enumeration values (with indexes
matching names)enumValues entries)Overrides com.
Deprecated
Method for efficiently figuring out which if given set of |
| public String[] | findEnumValues(MapperConfig<?>
the mapper configuration to use config, AnnotatedClass the annotated class for which to find the explicit names annotatedClass, Enum<?>[] the set of enumValues, String[] Enum values to find the explicit names forthe matching declared names of enumeration values (with indexes matching
names)enumValues entries)Overrides com. Finds the explicitly defined name of the given set of |
| public Object | findFilterId(Annotated
Annotated entity to introspect a)Overrides com. Method for finding if annotated class has associated filter; and if so, to return id that is used to locate filter. |
| public JsonFormat. | findFormat(Annotated ann)
Overrides com. Method for finding format annotations for property or class. |
| public String | findImplicitPropertyName(AnnotatedMember m)
Overrides com. Method for finding implicit name for a property that given annotated member (field, method, creator parameter) may represent. |
| public JacksonInject. | findInjectableValue(AnnotatedMember
Member to check m)Overrides com. Method called to find out whether given member expectes a value to be injected, and if so, what is the identifier of the value to use during injection. |
| public Object | |
| public Object | findKeyDeserializer(Annotated a)
Overrides com. Method for getting a deserializer definition for keys of
associated |
| public Object | findKeySerializer(Annotated a)
Overrides com. Method for getting a serializer definition for keys of associated |
| public Boolean | findMergeInfo(Annotated
Annotated entity to check a)Overrides com. Method for finding merge settings for property, if any. |
| public PropertyName | findNameForDeserialization(Annotated
Annotated entity to check a)Overrides com. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for deserialization (reading JSON into POJOs). |
| public PropertyName | findNameForSerialization(Annotated
Property accessor to check a)Overrides com. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for serialization. |
| public Object | findNamingStrategy(AnnotatedClass
Annotated class to introspect ac)Overrides com. Method for finding |
| public Object | findNullSerializer(Annotated a)
Overrides com. Method for getting a serializer definition for serializer to use for nulls (null values) of associated property or type. |
| public ObjectIdInfo | findObjectIdInfo(Annotated
Annotated entity to introspect ann)Overrides com. Method for checking whether given annotated thing (type, or accessor) indicates that values referenced (values of type of annotated class, or values referenced by annotated property; latter having precedence) should include Object Identifier, and if so, specify details of Object Identity used. |
| public ObjectIdInfo | findObjectReferenceInfo(Annotated
Annotated entity to introspect ann, ObjectIdInfo (optional) Base Object Id information, if any; objectIdInfo)null if noneOverrides com. Method for figuring out additional properties of an Object Identity reference |
| public Class | findPOJOBuilder(AnnotatedClass
Annotated class to introspect ac)Overrides com. Method for finding Builder object to use for constructing value instance and binding data (sort of combining value instantiators that can construct, and deserializers that can bind data). |
| public JsonPOJOBuilder. | findPOJOBuilderConfig(AnnotatedClass
Annotated class to introspect ac)Overrides com.
|
| public JsonTypeInfo. | findPolymorphicTypeInfo(MapperConfig<?>
Effective mapper configuration in use config, Annotated Annotated entity to introspect ann)Overrides com. Method for checking whether given Class or Property Accessor specifies polymorphic type-handling information, to indicate need for polymorphic handling. |
| public JsonProperty. | findPropertyAccess(Annotated m)
Overrides com. Method for finding optional access definition for a property, annotated on one of its accessors. |
| public List | findPropertyAliases(Annotated m)
Overrides com. Method called to find if given property has alias(es) defined. |
| public TypeResolverBuilder | findPropertyContentTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedMember Annotated member (field or method) to check for annotations am, JavaType Type of property for which resolver is to be found (must be a container type) containerType)Overrides com. Method for checking if given structured property entity (field or method that has nominal value of Map, Collection or array type) has annotations that indicate that specific type resolver is to be used for handling type information of contained values. |
| public String | findPropertyDefaultValue(Annotated ann)
Overrides com. Method for finding suggested default value (as simple textual serialization) for the property. |
| public String | findPropertyDescription(Annotated ann)
Overrides com. Method used to check whether specified property member (accessor or mutator) defines human-readable description to use for documentation. |
| public JsonIgnoreProperties. | findPropertyIgnoralByName(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, Annotated Annotated entity (Class, Accessor) to introspect a)Overrides com. Method for finding information about properties to ignore either by name, or by more general specification ("ignore all unknown"). |
| public JsonIgnoreProperties. | findPropertyIgnorals(Annotated
Annotated class to introspect ac)Overrides com.
Deprecated
|
| public JsonInclude. | findPropertyInclusion(Annotated a)
Overrides com. Method for checking inclusion criteria for a type (Class) or property (yes, method name is bit unfortunate -- not just for properties!). |
| public JsonIncludeProperties. | findPropertyInclusionByName(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, Annotated Annotated entity (Class, Accessor) to introspect a)Overrides com. Method for finding information about names of properties to included. |
| public Integer | findPropertyIndex(Annotated ann)
Overrides com. Method used to check whether specified property member (accessor or mutator) defines numeric index, and if so, what is the index value. |
| public TypeResolverBuilder | findPropertyTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedMember Annotated member (field or method) to check for annotations am, JavaType Base java type of property for which resolver is to be found baseType)Overrides com. Method for checking if given property entity (field or method) has annotations that indicate that specific type resolver is to be used for handling instances. |
| public AnnotationIntrospector. | findReferenceType(AnnotatedMember member)
Overrides com. Method for checking if given member indicates that it is part of a reference (parent/child). |
| public PropertyName | findRenameByField(MapperConfig<?>
Effective mapper configuration in use config, AnnotatedField Field to check f, PropertyName Implicit name of the field; usually name of field itself but not always,
used as the target name for accessors to rename. implName)Overrides com. Method called on fields that are eligible candidates for properties (that is, non-static member fields), but not necessarily selected (may or may not be visible), to let fields affect name linking. |
| public PropertyName | findRootName(AnnotatedClass
Annotated class to introspect ac)Overrides com. Method for locating name used as "root name" (for use by some serializers when outputting root-level object -- mostly for XML compatibility purposes) for given class, if one is defined. |
| public Object | findSerializationContentConverter(AnnotatedMember
Annotated property (field, method) to check. a)Overrides com. Method for finding |
| public Object | findSerializationConverter(Annotated
Annotated property (field, method) or class to check for
annotations a)Overrides com. Method for finding |
| public String[] | findSerializationPropertyOrder(AnnotatedClass ac)
Overrides com. Method for accessing defined property serialization order (which may be partial). |
| public Boolean | findSerializationSortAlphabetically(Annotated ann)
Overrides com. Method for checking whether an annotation indicates that serialized properties for which no explicit is defined should be alphabetically (lexicograpically) ordered |
| public JsonSerialize. | findSerializationTyping(Annotated a)
Overrides com. Method for accessing declared typing mode annotated (if any). |
| public Object | findSerializer(Annotated a)
Overrides com. Method for getting a serializer definition on specified method or field. |
| public JsonSetter. | findSetterInfo(Annotated
Annotated entity to check a)Overrides com. Method for finding possible settings for property, given annotations on an accessor. |
| public List | findSubtypes(Annotated
Annotated entity (class, field/method) to check for annotations a)Overrides com. Method for locating annotation-specified subtypes related to annotated entity (class, method, field). |
| private List | |
| public String | findTypeName(AnnotatedClass
Class to check for type name annotations ac)Overrides com. Method for checking if specified type has explicit name. |
| public TypeResolverBuilder | findTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedClass Annotated class to check for annotations ac, JavaType Base java type of value for which resolver is to be found baseType)Overrides com. Method for checking if given class has annotations that indicate that specific type resolver is to be used for handling instances. |
| public NameTransformer | findUnwrappingNameTransformer(AnnotatedMember member)
Overrides com. Method called to check whether given property is marked to be "unwrapped" when being serialized (and appropriately handled in reverse direction, i.e. expect unwrapped representation during deserialization). |
| public Object | findValueInstantiator(AnnotatedClass
Annotated class to introspect ac)Overrides com. Method getting |
| public Class | findViews(Annotated
Annotated property (represented by a method, field or ctor parameter) a)Overrides com. Method for checking if annotated property (represented by a field or getter/setter method) has definitions for views it is to be included in. If null is returned, no view definitions exist and property is always included (or always excluded as per default view inclusion configuration); otherwise it will only be included for views included in returned array. |
| public Boolean | hasAnyGetter(Annotated
Annotated entity to check a)Overrides com. Method for checking whether given method has an annotation that suggests that the method is to serve as "any setter"; method to be used for accessing set of miscellaneous "extra" properties, often bound with matching "any setter" method. |
| public boolean | hasAnyGetterAnnotation(AnnotatedMethod
Annotated method to check am)Overrides com.
Deprecated
|
| public Boolean | hasAnySetter(Annotated
Annotated entity to check a)Overrides com. Method for checking whether given method has an annotation that suggests that the method is to serve as "any setter"; method to be used for setting values of any properties for which no dedicated setter method is found. |
| public boolean | hasAnySetterAnnotation(AnnotatedMethod
Annotated method to check am)Overrides com.
Deprecated
|
| public Boolean | hasAsKey(MapperConfig<?> config, Annotated a)
Overrides com. Method for checking whether given method has an annotation that suggests the return value of annotated field or method should be used as "the key" of the object instance; usually serialized as a primitive value such as String or number. |
| public Boolean | hasAsValue(Annotated a)
Overrides com. Method for checking whether given method has an annotation that suggests that the return value of annotated method should be used as "the value" of the object instance; usually serialized as a primitive value such as String or number. |
| public boolean | hasAsValueAnnotation(AnnotatedMethod
Annotated method to check am)Overrides com.
Deprecated
|
| public boolean | hasCreatorAnnotation(Annotated
Annotated entity to check a)Overrides com.
Deprecated
Method for checking whether given annotated item (method, constructor) has an annotation that suggests that the method is a "creator" (aka factory) method to be used for construct new instances of deserialized values. |
| public boolean | hasIgnoreMarker(AnnotatedMember m)
Overrides com. Method called to check whether given property is marked to be ignored. |
| public Boolean | hasRequiredMarker(AnnotatedMember m)
Overrides com. Method that can be called to check whether this member has an annotation that suggests whether value for matching property is required or not. |
| public boolean | isAnnotationBundle(Annotation
Annotated entity to introspect ann)Overrides com. Annotations with meta-annotation |
| public Boolean | isIgnorableType(AnnotatedClass
Annotated class to introspect ac)Overrides com. Method for checking whether properties that have specified type (class, not generics aware) should be completely ignored for serialization and deserialization purposes. |
| public Boolean | isTypeId(AnnotatedMember
Annotated accessor (field/method/constructor parameter) to check for annotations member)Overrides com. Method for checking whether given accessor claims to represent type id: if so, its value may be used as an override, instead of generated type id. |
| protected Object | |
| public JavaType | refineDeserializationType(final MapperConfig<?> config, final Annotated a, final JavaType baseType)
Overrides com. Method called to find out possible type refinements to use for deserialization. |
| public JavaType | refineSerializationType(final MapperConfig<?> config, final Annotated a, final JavaType baseType)
Overrides com. Method called to find out possible type refinements to use for deserialization, including not just value itself but key and/or content type, if type has those. |
| public AnnotatedMethod | resolveSetterConflict(MapperConfig<?> config, AnnotatedMethod setter1, AnnotatedMethod setter2)
Overrides com. Specific implementation that will use following tie-breaker on given setter parameter types:
|
| public JacksonAnnotationIntrospector | setConstructorPropertiesImpliesCreator(boolean b)
Method for changing behavior of |
| public Version | version()
Implements abstract com. Implements com. Method called to detect version of the component that implements this interface;
returned version should never be null, but may return specific "not available"
instance (see |