Class JsonTypeAndClassAnnotationIntrospector

  • All Implemented Interfaces:
    com.fasterxml.jackson.core.Versioned, java.io.Serializable

    public class JsonTypeAndClassAnnotationIntrospector
    extends com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
    An annotation introspector that returns the custom type resolver which recognizes @type and @class fields. The custom resolver is used only for classes marked with JsonObject annotation. For standard classes like List or HashMap type information is not included.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector

        com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector

        _annotationsInside, _cfgConstructorPropertiesImpliesCreator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.introspect.ObjectIdInfo findObjectIdInfo​(com.fasterxml.jackson.databind.introspect.Annotated ann)  
      java.lang.String findTypeName​(com.fasterxml.jackson.databind.introspect.AnnotatedClass ac)  
      com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<?> findTypeResolver​(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config, com.fasterxml.jackson.databind.introspect.AnnotatedClass ac, com.fasterxml.jackson.databind.JavaType baseType)  
      • Methods inherited from class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector

        _classIfExplicit, _classIfExplicit, _constructNoTypeResolverBuilder, _constructStdTypeResolverBuilder, _constructVirtualProperty, _constructVirtualProperty, _findConstructorName, _findTypeResolver, _isIgnorable, _propertyName, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationKeyType, findDeserializationType, findDeserializer, findEnumValue, findEnumValues, findFilterId, findFormat, findImplicitPropertyName, findInjectableValue, findInjectableValueId, findKeyDeserializer, findKeySerializer, findMergeInfo, findNameForDeserialization, findNameForSerialization, findNamingStrategy, findNullSerializer, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnorals, findPropertyInclusion, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findRootName, findSerializationContentConverter, findSerializationContentType, findSerializationConverter, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, readResolve, refineDeserializationType, refineSerializationType, resolveSetterConflict, setConstructorPropertiesImpliesCreator, version
      • Methods inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector

        _findAnnotation, _hasAnnotation, _hasOneOf, allIntrospectors, allIntrospectors, findIgnoreUnknownProperties, findPropertiesToIgnore, findPropertiesToIgnore, findSerializationInclusion, findSerializationInclusionForContent, findWrapperName, nopInstance, pair
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findTypeName

        public java.lang.String findTypeName​(com.fasterxml.jackson.databind.introspect.AnnotatedClass ac)
        Overrides:
        findTypeName in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
      • findObjectIdInfo

        public com.fasterxml.jackson.databind.introspect.ObjectIdInfo findObjectIdInfo​(com.fasterxml.jackson.databind.introspect.Annotated ann)
        Overrides:
        findObjectIdInfo in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
      • findTypeResolver

        public com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<?> findTypeResolver​(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
                                                                                               com.fasterxml.jackson.databind.introspect.AnnotatedClass ac,
                                                                                               com.fasterxml.jackson.databind.JavaType baseType)
        Overrides:
        findTypeResolver in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector