java.lang.Object
tools.jackson.databind.introspect.ClassIntrospector
- Direct Known Subclasses:
BasicClassIntrospector
Helper class used to introspect features of POJO value classes
used with Jackson. The main use is for finding out
POJO construction (creator) and value access (getters, setters)
methods and annotations that define configuration of using
those methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ClassIntrospector
Method called to create an instance to be exclusive used by specified mapper.abstract ClassIntrospector
forOperation
(MapperConfig<?> config) Method called to further create an instance to be used for a single operation (read or write, typically matchingObjectMapper
readValue()
orwriteValue()
).abstract AnnotatedClass
Factory method that introspects aAnnotatedClass
that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.abstract AnnotatedClass
Factory method that introspects aAnnotatedClass
that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.abstract BeanDescription
introspectForCreation
(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescription
that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methodsabstract BeanDescription
introspectForDeserialization
(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescription
that has all information needed for deserialization purposes.abstract BeanDescription
introspectForDeserializationWithBuilder
(JavaType builderType, BeanDescription valueTypeDesc) Factory method that introspects aBeanDescription
that has all information needed for constructing deserializers that use intermediate Builder objects.abstract BeanDescription
introspectForSerialization
(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescription
that has all information needed for serialization purposes.
-
Constructor Details
-
ClassIntrospector
protected ClassIntrospector()
-
-
Method Details
-
forMapper
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.
- Since:
- 3.0
-
forOperation
Method called to further create an instance to be used for a single operation (read or write, typically matchingObjectMapper
readValue()
orwriteValue()
). -
introspectClassAnnotations
Factory method that introspects aAnnotatedClass
that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors. -
introspectDirectClassAnnotations
Factory method that introspects aAnnotatedClass
that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors. -
introspectForSerialization
Factory method that introspects aBeanDescription
that has all information needed for serialization purposes. -
introspectForDeserialization
public abstract BeanDescription introspectForDeserialization(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescription
that has all information needed for deserialization purposes. -
introspectForDeserializationWithBuilder
public abstract BeanDescription introspectForDeserializationWithBuilder(JavaType builderType, BeanDescription valueTypeDesc) Factory method that introspects aBeanDescription
that has all information needed for constructing deserializers that use intermediate Builder objects. -
introspectForCreation
Factory method that introspects aBeanDescription
that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methods
-