Package org.apache.solr.util
Class SolrJacksonAnnotationInspector
- java.lang.Object
-
- com.fasterxml.jackson.databind.AnnotationIntrospector
-
- org.apache.solr.util.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'sJsonProperty
annotation to a corresponding annotation in jackson see SOLR-13841 for more detailsObjectMapper mapper = new ObjectMapper(); mapper.setAnnotationIntrospector(new SolrJacksonAnnotationInspector());
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static SolrJacksonAnnotationInspector
INSTANCE
-
Constructor Summary
Constructors Constructor Description SolrJacksonAnnotationInspector()
-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final SolrJacksonAnnotationInspector INSTANCE
-
-
Method Detail
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
version
in interfacecom.fasterxml.jackson.core.Versioned
- Specified by:
version
in classcom.fasterxml.jackson.databind.AnnotationIntrospector
-
findNameForSerialization
public com.fasterxml.jackson.databind.PropertyName findNameForSerialization(com.fasterxml.jackson.databind.introspect.Annotated a)
- Overrides:
findNameForSerialization
in classcom.fasterxml.jackson.databind.AnnotationIntrospector
-
hasRequiredMarker
public Boolean hasRequiredMarker(com.fasterxml.jackson.databind.introspect.AnnotatedMember m)
- Overrides:
hasRequiredMarker
in classcom.fasterxml.jackson.databind.AnnotationIntrospector
-
findPropertyDefaultValue
public String findPropertyDefaultValue(com.fasterxml.jackson.databind.introspect.Annotated m)
- Overrides:
findPropertyDefaultValue
in classcom.fasterxml.jackson.databind.AnnotationIntrospector
-
findNameForDeserialization
public com.fasterxml.jackson.databind.PropertyName findNameForDeserialization(com.fasterxml.jackson.databind.introspect.Annotated a)
- Overrides:
findNameForDeserialization
in classcom.fasterxml.jackson.databind.AnnotationIntrospector
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
-
-