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 MixInResolver
protected 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 BasicBeanDescription
protected 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 AnnotatedClass
protected AnnotatedClass
protected POJOPropertiesCollector
collectProperties
(JavaType type, AnnotatedClass classDef, boolean forSerialization, String mutatorPrefix) protected POJOPropertiesCollector
collectPropertiesWithBuilder
(JavaType type, AnnotatedClass builderClassDef, BeanDescription valueTypeDesc, boolean forSerialization) protected POJOPropertiesCollector
constructPropertyCollector
(JavaType type, AnnotatedClass classDef, boolean forSerialization, AccessorNamingStrategy accNaming) Overridable method called for creatingPOJOPropertiesCollector
instance 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 matchingObjectMapper
readValue()
orwriteValue()
).Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.Factory method that constructs an introspector that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.Factory method that constructs an introspector that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methodsFactory method that constructs an introspector that has all information needed for deserialization purposes.introspectForDeserializationWithBuilder
(JavaType type, BeanDescription valueTypeDesc) Factory method that constructs an introspector that has all information needed for constructing deserializers that use intermediate Builder objects.Factory method that constructs an introspector that 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:ClassIntrospector
Method 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:
forMapper
in classClassIntrospector
-
forOperation
Description copied from class:ClassIntrospector
Method called to further create an instance to be used for a single operation (read or write, typically matchingObjectMapper
readValue()
orwriteValue()
).- Specified by:
forOperation
in classClassIntrospector
-
introspectClassAnnotations
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.- Specified by:
introspectClassAnnotations
in classClassIntrospector
-
introspectDirectClassAnnotations
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.- Specified by:
introspectDirectClassAnnotations
in classClassIntrospector
-
_resolveAnnotatedClass
-
_resolveAnnotatedWithoutSuperTypes
-
introspectForSerialization
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that has all information needed for serialization purposes.- Specified by:
introspectForSerialization
in classClassIntrospector
-
introspectForDeserialization
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that has all information needed for deserialization purposes.- Specified by:
introspectForDeserialization
in classClassIntrospector
-
introspectForDeserializationWithBuilder
public BasicBeanDescription introspectForDeserializationWithBuilder(JavaType type, BeanDescription valueTypeDesc) Description copied from class:ClassIntrospector
Factory method that constructs an introspector that has all information needed for constructing deserializers that use intermediate Builder objects.- Specified by:
introspectForDeserializationWithBuilder
in classClassIntrospector
-
introspectForCreation
Description copied from class:ClassIntrospector
Factory method that constructs an introspector that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methods- Specified by:
introspectForCreation
in 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 creatingPOJOPropertiesCollector
instance 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
-