Class ClassIntrospector<T extends BeanDescription>

  • Direct Known Subclasses:
    BasicClassIntrospector

    public abstract class ClassIntrospector<T extends BeanDescription>
    extends java.lang.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 Detail

      • ClassIntrospector

        protected ClassIntrospector()
    • Method Detail

      • forCreation

        public abstract T 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
      • forClassAnnotations

        public abstract T 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.
      • forDirectClassAnnotations

        public abstract T 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.
        Since:
        1.5
      • forClassAnnotations

        @Deprecated
        public T forClassAnnotations​(MapperConfig<?> cfg,
                                     java.lang.Class<?> cls,
                                     ClassIntrospector.MixInResolver r)
        Deprecated.
        since 1.9, use variant that takes JavaType
        Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.
      • forDirectClassAnnotations

        @Deprecated
        public T forDirectClassAnnotations​(MapperConfig<?> cfg,
                                           java.lang.Class<?> cls,
                                           ClassIntrospector.MixInResolver r)
        Deprecated.
        since 1.9, use variant that takes JavaType
        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.
        Since:
        1.5