Class ClassIntrospector

java.lang.Object
tools.jackson.databind.introspect.ClassIntrospector
Direct Known Subclasses:
BasicClassIntrospector

public abstract class ClassIntrospector extends Object
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 Details

    • ClassIntrospector

      protected ClassIntrospector()
  • Method Details

    • forMapper

      public abstract ClassIntrospector 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

      public abstract ClassIntrospector forOperation(MapperConfig<?> config)
      Method called to further create an instance to be used for a single operation (read or write, typically matching ObjectMapper readValue() or writeValue()).
    • introspectClassAnnotations

      public abstract AnnotatedClass introspectClassAnnotations(JavaType type)
      Factory method that introspects a AnnotatedClass that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.
    • introspectDirectClassAnnotations

      public abstract AnnotatedClass introspectDirectClassAnnotations(JavaType type)
      Factory method that introspects a AnnotatedClass that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.
    • introspectForSerialization

      public abstract BeanDescription introspectForSerialization(JavaType type, AnnotatedClass classDef)
      Factory method that introspects a BeanDescription that has all information needed for serialization purposes.
    • introspectForDeserialization

      public abstract BeanDescription introspectForDeserialization(JavaType type, AnnotatedClass classDef)
      Factory method that introspects a BeanDescription that has all information needed for deserialization purposes.
    • introspectForDeserializationWithBuilder

      public abstract BeanDescription introspectForDeserializationWithBuilder(JavaType builderType, BeanDescription valueTypeDesc)
      Factory method that introspects a BeanDescription that has all information needed for constructing deserializers that use intermediate Builder objects.
    • introspectForCreation

      public abstract BeanDescription introspectForCreation(JavaType type, AnnotatedClass classDef)
      Factory method that introspects a BeanDescription that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methods