An obvious consequence of priority is that it is easy to construct longer chains of introspectors by linking multiple pairs. Currently most likely combination is that of using the default Jackson provider, along with JAXB annotation introspector.
| Modifier and Type | Field and Description |
|---|---|
| protected final AnnotationIntrospector | |
| protected final AnnotationIntrospector | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| protected boolean | |
| public Collection | allIntrospectors()
Overrides tools. Method that can be used to collect all "real" introspectors that this introspector contains, if any; or this introspector if it is not a container. |
| public Collection | allIntrospectors(Collection<AnnotationIntrospector> result)
Overrides tools. Method that can be used to collect all "real" introspectors that this introspector contains, if any; or this introspector if it is not a container. |
| public static AnnotationIntrospector | create(AnnotationIntrospector primary, AnnotationIntrospector secondary)
Helper method for constructing a Pair from two given introspectors (if neither is null); or returning non-null introspector if one is null (and return just null if both are null) |
| public void | findAndAddVirtualProperties(MapperConfig<?> config, AnnotatedClass ac, List<BeanPropertyWriter> properties)
Overrides tools. Method for adding possible virtual properties to be serialized along with regular properties. |
| public VisibilityChecker | findAutoDetectVisibility(MapperConfig<?> config, AnnotatedClass ac, VisibilityChecker checker)
Overrides tools. Method for checking if annotations indicate changes to minimum visibility levels needed for auto-detecting property elements (fields, methods, constructors). |
| public String | findClassDescription(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method used to check whether specified class defines a human-readable description to use for documentation. |
| public Object | findContentDeserializer(MapperConfig<?> config, Annotated am)
Overrides tools. Method for getting a deserializer definition for content (values) of
associated |
| public Object | findContentSerializer(MapperConfig<?> config, Annotated a)
Overrides tools. Method for getting a serializer definition for content (values) of
associated |
| public JsonCreator. | findCreatorAnnotation(MapperConfig<?> config, Annotated a)
Overrides tools. 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 Enum | findDefaultEnumValue(MapperConfig<?> config, AnnotatedClass annotatedClass, Enum<?>[] enumValues)
Overrides tools. Finds the first Enum value that should be considered as default value for unknown Enum values, if present. |
| public Object | findDeserializationContentConverter(MapperConfig<?> config, AnnotatedMember a)
Overrides tools. Method for finding |
| public Object | findDeserializationConverter(MapperConfig<?> config, Annotated a)
Overrides tools. Method for finding |
| public Object | findDeserializer(MapperConfig<?> config, Annotated a)
Overrides tools. Method for getting a deserializer definition on specified method or field. |
| public void | findEnumAliases(MapperConfig<?> config, AnnotatedClass annotatedClass, Enum<?>[] enumConstants, String[][] aliases)
Overrides tools. 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 ac)
Overrides tools. Method for finding |
| public String[] | findEnumValues(MapperConfig<?> config, AnnotatedClass annotatedClass, Enum<?>[] enumValues, String[] names)
Overrides tools. Finds the explicitly defined name of the given set of |
| public Object | findFilterId(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for finding if annotated class has associated filter; and if so, to return id that is used to locate filter. |
| public JsonFormat. | findFormat(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for finding format annotations for property or class. |
| public String | findImplicitPropertyName(MapperConfig<?> config, AnnotatedMember ann)
Overrides tools. Method for finding implicit name for a property that given annotated member (field, method, creator parameter) may represent. |
| public JacksonInject. | findInjectableValue(MapperConfig<?> config, AnnotatedMember m)
Overrides tools. 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 | findKeyDeserializer(MapperConfig<?> config, Annotated a)
Overrides tools. Method for getting a deserializer definition for keys of
associated |
| public Object | findKeySerializer(MapperConfig<?> config, Annotated a)
Overrides tools. Method for getting a serializer definition for keys of associated |
| public Boolean | findMergeInfo(MapperConfig<?> config, Annotated a)
Overrides tools. Method for finding merge settings for property, if any. |
| public PropertyName | findNameForDeserialization(MapperConfig<?> config, Annotated a)
Overrides tools. 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(MapperConfig<?> config, Annotated a)
Overrides tools. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for serialization. |
| public Object | findNamingStrategy(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method for finding |
| public Object | findNullSerializer(MapperConfig<?> config, Annotated a)
Overrides tools. Method for getting a serializer definition for serializer to use for nulls (null values) of associated property or type. |
| public ObjectIdInfo | findObjectIdInfo(MapperConfig<?> config, Annotated ann)
Overrides tools. 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(MapperConfig<?> config, Annotated ann, ObjectIdInfo objectIdInfo)
Overrides tools. Method for figuring out additional properties of an Object Identity reference |
| public Class | findPOJOBuilder(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. 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. | |
| public JsonTypeInfo. | findPolymorphicTypeInfo(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for checking whether given Class or Property Accessor specifies polymorphic type-handling information, to indicate need for polymorphic handling. |
| public PotentialCreator | findPreferredCreator(MapperConfig<?> config, AnnotatedClass valueClass, List<PotentialCreator> declaredConstructors, List<PotentialCreator> declaredFactories, Optional<PotentialCreator> zeroParamsConstructor)
Overrides tools. Method called to check if introspector can find a Creator it considers
its "Preferred Creator": Creator to use as the primary one, when no Creator has
explicit annotation ( |
| public JsonProperty. | findPropertyAccess(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for finding optional access definition for a property, annotated on one of its accessors. |
| public List | findPropertyAliases(MapperConfig<?> config, Annotated ann)
Overrides tools. Method called to find if given property has alias(es) defined. |
| public String | findPropertyDefaultValue(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for finding suggested default value (as simple textual serialization) for the property. |
| public String | findPropertyDescription(MapperConfig<?> config, Annotated ann)
Overrides tools. Method used to check whether specified property member (accessor or mutator) defines human-readable description to use for documentation. |
| public JsonIgnoreProperties. | findPropertyIgnoralByName(MapperConfig<?> config, Annotated a)
Overrides tools. Method for finding information about properties to ignore either by name, or by more general specification ("ignore all unknown"). |
| public JsonInclude. | findPropertyInclusion(MapperConfig<?> config, Annotated a)
Overrides tools. 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<?> config, Annotated a)
Overrides tools. Method for finding information about names of properties to included. |
| public Integer | findPropertyIndex(MapperConfig<?> config, Annotated ann)
Overrides tools. Method used to check whether specified property member (accessor or mutator) defines numeric index, and if so, what is the index value. |
| public AnnotationIntrospector. | findReferenceType(MapperConfig<?> config, AnnotatedMember member)
Overrides tools. Method for checking if given member indicates that it is part of a reference (parent/child). |
| public PropertyName | findRenameByField(MapperConfig<?> config, AnnotatedField f, PropertyName implName)
Overrides tools. 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(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. 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(MapperConfig<?> config, AnnotatedMember a)
Overrides tools. Method for finding |
| public Object | findSerializationConverter(MapperConfig<?> config, Annotated a)
Overrides tools. Method for finding |
| public String[] | findSerializationPropertyOrder(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method for accessing defined property serialization order (which may be partial). |
| public Boolean | findSerializationSortAlphabetically(MapperConfig<?> config, Annotated ann)
Overrides tools. Method for checking whether an annotation indicates that serialized properties for which no explicit is defined should be alphabetically (lexicograpically) ordered |
| public JsonSerialize. | findSerializationTyping(MapperConfig<?> config, Annotated a)
Overrides tools. Method for accessing declared typing mode annotated (if any). |
| public Object | findSerializer(MapperConfig<?> config, Annotated am)
Overrides tools. Method for getting a serializer definition on specified method or field. |
| public JsonSetter. | findSetterInfo(MapperConfig<?> config, Annotated a)
Overrides tools. Method for finding possible settings for property, given annotations on an accessor. |
| public List | findSubtypes(MapperConfig<?> config, Annotated a)
Overrides tools. Method for locating annotation-specified subtypes related to annotated entity (class, method, field). |
| public Object | findTypeIdResolver(MapperConfig<?> config, Annotated ann)
Overrides tools.
|
| public String | findTypeName(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method for checking if specified type has explicit name. |
| public Object | findTypeResolverBuilder(MapperConfig<?> config, Annotated ann)
Overrides tools.
|
| public NameTransformer | findUnwrappingNameTransformer(MapperConfig<?> config, AnnotatedMember member)
Overrides tools. 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(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. Method getting |
| public Class | findViews(MapperConfig<?> config, Annotated a)
Overrides tools. 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 PropertyName | findWrapperName(MapperConfig<?> config, Annotated ann)
Overrides tools. Method used to check if specified property has annotation that indicates that it should be wrapped in an element; and if so, name to use. |
| public Boolean | hasAnyGetter(MapperConfig<?> config, Annotated a)
Overrides tools. 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 | hasAnySetter(MapperConfig<?> config, Annotated a)
Overrides tools. 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 | hasAsKey(MapperConfig<?> config, Annotated a)
Overrides tools. 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(MapperConfig<?> config, Annotated a)
Overrides tools. 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 | hasIgnoreMarker(MapperConfig<?> config, AnnotatedMember m)
Overrides tools. Method called to check whether given property is marked to be ignored. |
| public Boolean | hasRequiredMarker(MapperConfig<?> config, AnnotatedMember m)
Overrides tools. 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 ann)
Overrides tools. Method for checking whether given annotation is considered an annotation bundle: if so, all meta-annotations it has will be used instead of annotation ("bundle") itself. |
| public Boolean | isIgnorableType(MapperConfig<?> config, AnnotatedClass ac)
Overrides tools. 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(MapperConfig<?> config, AnnotatedMember member)
Overrides tools. 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. |
| public JavaType | refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType)
Overrides tools. Method called to find out possible type refinements to use for deserialization. |
| public JavaType | refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType)
Overrides tools. 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 tools. Method called in cases where a class has two methods eligible to be used for the same logical property, and default logic is not enough to figure out clear precedence. |
| public Version | version()
Implements abstract tools. Implements tools. 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 |