Module tools.jackson.databind
Class BasicClassIntrospector
java.lang.Object
tools.jackson.databind.introspect.ClassIntrospector
tools.jackson.databind.introspect.BasicClassIntrospector
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MapperConfig<?>protected final MixInResolverprotected HashMap<JavaType,BasicBeanDescription> Reuse full bean descriptions for serialization during a single operationprotected HashMap<JavaType,AnnotatedClass> Reuse fully-resolved annotations during a single operationprotected HashMap<JavaType,BasicBeanDescription> Reuse full bean descriptions for serialization during a single operation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicBeanDescriptionprotected AnnotatedClass_findStdTypeDef(JavaType type) Method called to see if type is one of core JDK types that we have cached for efficiency.protected BasicBeanDescription_findStdTypeDesc(JavaType type) protected AnnotatedClassprotected AnnotatedClassprotected POJOPropertiesCollectorcollectProperties(JavaType type, AnnotatedClass classDef, boolean forSerialization, String mutatorPrefix) protected POJOPropertiesCollectorcollectPropertiesWithBuilder(JavaType type, AnnotatedClass builderClassDef, BeanDescription valueTypeDesc, boolean forSerialization) protected POJOPropertiesCollectorconstructPropertyCollector(JavaType type, AnnotatedClass classDef, boolean forSerialization, AccessorNamingStrategy accNaming) Overridable method called for creatingPOJOPropertiesCollectorinstance to use; override is needed if a custom sub-class is to be used.Method called to create an instance to be exclusive used by specified mapper.forOperation(MapperConfig<?> config) Method called to further create an instance to be used for a single operation (read or write, typically matchingObjectMapperreadValue()orwriteValue()).Factory method that introspects aAnnotatedClassthat only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.Factory method that introspects aAnnotatedClassthat only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.introspectForCreation(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescriptionthat has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methodsintrospectForDeserialization(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescriptionthat has all information needed for deserialization purposes.introspectForDeserializationWithBuilder(JavaType type, BeanDescription valueTypeDesc) Factory method that introspects aBeanDescriptionthat has all information needed for constructing deserializers that use intermediate Builder objects.introspectForSerialization(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescriptionthat has all information needed for serialization purposes.
-
Field Details
-
_mixInResolver
-
_config
-
_resolvedFullAnnotations
Reuse fully-resolved annotations during a single operation -
_resolvedSerBeanDescs
Reuse full bean descriptions for serialization during a single operation -
_resolvedDeserBeanDescs
Reuse full bean descriptions for serialization during a single operation
-
-
Constructor Details
-
BasicClassIntrospector
public BasicClassIntrospector() -
BasicClassIntrospector
-
-
Method Details
-
forMapper
Description copied from class:ClassIntrospectorMethod called to create an instance to be exclusive used by specified mapper. Needed to ensure that no sharing through cache occurs.Basic implementation just returns instance itself.
- Specified by:
forMapperin classClassIntrospector
-
forOperation
Description copied from class:ClassIntrospectorMethod called to further create an instance to be used for a single operation (read or write, typically matchingObjectMapperreadValue()orwriteValue()).- Specified by:
forOperationin classClassIntrospector
-
introspectClassAnnotations
Description copied from class:ClassIntrospectorFactory method that introspects aAnnotatedClassthat only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.- Specified by:
introspectClassAnnotationsin classClassIntrospector
-
introspectDirectClassAnnotations
Description copied from class:ClassIntrospectorFactory method that introspects aAnnotatedClassthat only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.- Specified by:
introspectDirectClassAnnotationsin classClassIntrospector
-
_resolveAnnotatedClass
-
_resolveAnnotatedWithoutSuperTypes
-
introspectForSerialization
Description copied from class:ClassIntrospectorFactory method that introspects aBeanDescriptionthat has all information needed for serialization purposes.- Specified by:
introspectForSerializationin classClassIntrospector
-
introspectForDeserialization
Description copied from class:ClassIntrospectorFactory method that introspects aBeanDescriptionthat has all information needed for deserialization purposes.- Specified by:
introspectForDeserializationin classClassIntrospector
-
introspectForDeserializationWithBuilder
public BasicBeanDescription introspectForDeserializationWithBuilder(JavaType type, BeanDescription valueTypeDesc) Description copied from class:ClassIntrospectorFactory method that introspects aBeanDescriptionthat has all information needed for constructing deserializers that use intermediate Builder objects.- Specified by:
introspectForDeserializationWithBuilderin classClassIntrospector
-
introspectForCreation
Description copied from class:ClassIntrospectorFactory method that introspects aBeanDescriptionthat has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methods- Specified by:
introspectForCreationin classClassIntrospector
-
collectProperties
protected POJOPropertiesCollector collectProperties(JavaType type, AnnotatedClass classDef, boolean forSerialization, String mutatorPrefix) -
collectPropertiesWithBuilder
protected POJOPropertiesCollector collectPropertiesWithBuilder(JavaType type, AnnotatedClass builderClassDef, BeanDescription valueTypeDesc, boolean forSerialization) -
constructPropertyCollector
protected POJOPropertiesCollector constructPropertyCollector(JavaType type, AnnotatedClass classDef, boolean forSerialization, AccessorNamingStrategy accNaming) Overridable method called for creatingPOJOPropertiesCollectorinstance to use; override is needed if a custom sub-class is to be used. -
_findStdTypeDesc
-
_findStdTypeDef
Method called to see if type is one of core JDK types that we have cached for efficiency. -
_findStdJdkCollectionDesc
-