Class SolrJacksonAnnotationInspector

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

    public class SolrJacksonAnnotationInspector
    extends com.fasterxml.jackson.databind.AnnotationIntrospector
    this class provides a mapping between Solr's JsonProperty annotation to a corresponding annotation in jackson see SOLR-13841 for more details
     ObjectMapper mapper = new ObjectMapper();
     mapper.setAnnotationIntrospector(new SolrJacksonAnnotationInspector());
     
    See Also:
    Serialized Form
    • Nested Class Summary

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

        com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty, com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()  
      com.fasterxml.jackson.databind.PropertyName findNameForDeserialization​(com.fasterxml.jackson.databind.introspect.Annotated a)  
      com.fasterxml.jackson.databind.PropertyName findNameForSerialization​(com.fasterxml.jackson.databind.introspect.Annotated a)  
      String findPropertyDefaultValue​(com.fasterxml.jackson.databind.introspect.Annotated m)  
      Boolean hasRequiredMarker​(com.fasterxml.jackson.databind.introspect.AnnotatedMember m)  
      com.fasterxml.jackson.core.Version version()  
      • Methods inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector

        _findAnnotation, _hasAnnotation, _hasOneOf, allIntrospectors, allIntrospectors, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationConverter, findDeserializer, findEnumAliases, findEnumAliases, findEnumNamingStrategy, findEnumValue, findEnumValues, findEnumValues, findFilterId, findFormat, findIgnoreUnknownProperties, findImplicitPropertyName, findInjectableValue, findInjectableValueId, findKeyDeserializer, findKeySerializer, findMergeInfo, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPolymorphicTypeInfo, findPropertiesToIgnore, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDescription, findPropertyIgnoralByName, findPropertyIgnorals, findPropertyInclusion, findPropertyInclusionByName, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findRenameByField, findRootName, findSerializationContentConverter, findSerializationConverter, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, findWrapperName, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsKey, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, isAnnotationBundle, isIgnorableType, isTypeId, nopInstance, pair, refineDeserializationType, refineSerializationType, resolveSetterConflict
    • Constructor Detail

      • SolrJacksonAnnotationInspector

        public SolrJacksonAnnotationInspector()
    • Method Detail

      • version

        public com.fasterxml.jackson.core.Version version()
        Specified by:
        version in interface com.fasterxml.jackson.core.Versioned
        Specified by:
        version in class com.fasterxml.jackson.databind.AnnotationIntrospector
      • findNameForSerialization

        public com.fasterxml.jackson.databind.PropertyName findNameForSerialization​(com.fasterxml.jackson.databind.introspect.Annotated a)
        Overrides:
        findNameForSerialization in class com.fasterxml.jackson.databind.AnnotationIntrospector
      • hasRequiredMarker

        public Boolean hasRequiredMarker​(com.fasterxml.jackson.databind.introspect.AnnotatedMember m)
        Overrides:
        hasRequiredMarker in class com.fasterxml.jackson.databind.AnnotationIntrospector
      • findPropertyDefaultValue

        public String findPropertyDefaultValue​(com.fasterxml.jackson.databind.introspect.Annotated m)
        Overrides:
        findPropertyDefaultValue in class com.fasterxml.jackson.databind.AnnotationIntrospector
      • findNameForDeserialization

        public com.fasterxml.jackson.databind.PropertyName findNameForDeserialization​(com.fasterxml.jackson.databind.introspect.Annotated a)
        Overrides:
        findNameForDeserialization in class com.fasterxml.jackson.databind.AnnotationIntrospector
      • createObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()