Top Description Inners Constructors Methods
com.fasterxml.jackson.databind.introspect

public abstract Class ClassIntrospector

extends Object
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.databind.introspect.BasicClassIntrospector
Imports
com.fasterxml.jackson.databind.BeanDescription, .DeserializationConfig, .JavaType, .SerializationConfig, com.fasterxml.jackson.databind.cfg.MapperConfig

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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
ClassIntrospector.MixInResolver

Interface used for decoupling details of how mix-in annotation definitions are accessed (via this interface), and how they are stored (defined by classes that implement the interface)

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract ClassIntrospector
copy()

Method that may be needed when `copy()`ing `ObjectMapper` instances.

public abstract BeanDescription
forClassAnnotations(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r)

Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.

public abstract BeanDescription
forCreation(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)

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

public abstract BeanDescription
forDeserialization(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)

Factory method that constructs an introspector that has all information needed for deserialization purposes.

public abstract BeanDescription
forDeserializationWithBuilder(DeserializationConfig cfg, JavaType builderType, ClassIntrospector.MixInResolver r, BeanDescription valueTypeDesc)

Factory method that constructs an introspector that has all information needed for constructing deserializers that use intermediate Builder objects.

public abstract BeanDescription
forDeserializationWithBuilder(DeserializationConfig cfg, JavaType builderType, ClassIntrospector.MixInResolver r)

Deprecated Since 2.12 use overload that take value type description
public abstract BeanDescription
forDirectClassAnnotations(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r)

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.

public abstract BeanDescription
forSerialization(SerializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)

Factory method that constructs an introspector that has all information needed for serialization purposes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ClassIntrospectorback to summary
protected ClassIntrospector()

Method Detail

copyback to summary
public abstract ClassIntrospector copy()

Method that may be needed when `copy()`ing `ObjectMapper` instances.

Since
2.9.6
forClassAnnotationsback to summary
public abstract BeanDescription forClassAnnotations(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r)

Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.

forCreationback to summary
public abstract BeanDescription forCreation(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)

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

forDeserializationback to summary
public abstract BeanDescription forDeserialization(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)

Factory method that constructs an introspector that has all information needed for deserialization purposes.

forDeserializationWithBuilderback to summary
public abstract BeanDescription forDeserializationWithBuilder(DeserializationConfig cfg, JavaType builderType, ClassIntrospector.MixInResolver r, BeanDescription valueTypeDesc)

Factory method that constructs an introspector that has all information needed for constructing deserializers that use intermediate Builder objects.

Since
2.12
forDeserializationWithBuilderback to summary
public abstract BeanDescription forDeserializationWithBuilder(DeserializationConfig cfg, JavaType builderType, ClassIntrospector.MixInResolver r)

Deprecated

Since 2.12 use overload that take value type description

Annotations
@Deprecated
forDirectClassAnnotationsback to summary
public abstract BeanDescription forDirectClassAnnotations(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r)

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.

forSerializationback to summary
public abstract BeanDescription forSerialization(SerializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r)

Factory method that constructs an introspector that has all information needed for serialization purposes.

com.fasterxml.jackson.databind.introspect back to summary

public Interface ClassIntrospector.MixInResolver

Known Direct Implementers
com.fasterxml.jackson.databind.introspect.SimpleMixInResolver, com.fasterxml.jackson.databind.cfg.MapperConfig

Interface used for decoupling details of how mix-in annotation definitions are accessed (via this interface), and how they are stored (defined by classes that implement the interface)

Method Summary

Modifier and TypeMethod and Description
public ClassIntrospector.MixInResolver
copy()

Method called to create a new, non-shared copy, to be used by different ObjectMapper instance, and one that should not be connected to this instance, if resolver has mutable state.

public Class<?>
findMixInClassFor(Class<?> cls)

Method that will check if there are "mix-in" classes (with mix-in annotations) for given class

Method Detail

copyback to summary
public ClassIntrospector.MixInResolver copy()

Method called to create a new, non-shared copy, to be used by different ObjectMapper instance, and one that should not be connected to this instance, if resolver has mutable state. If resolver is immutable may simply return `this`.

Since
2.6
findMixInClassForback to summary
public Class<?> findMixInClassFor(Class<?> cls)

Method that will check if there are "mix-in" classes (with mix-in annotations) for given class