Package com.fasterxml.jackson.jr.ob.impl
Class BeanPropertyIntrospector
java.lang.Object
com.fasterxml.jackson.jr.ob.impl.BeanPropertyIntrospector
Helper class that jackson-jr uses by default to introspect POJO properties
(represented as
POJODefinition) to build general POJO readers
(deserializers) and writers (serializers).
Note that most of the usage is via ValueReaderLocator and
ValueWriterLocator
- Since:
- 2.11
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddNonRecordConstructors(Class<?> beanType, BeanConstructors constructors) Adds allbeanType's 0 and 1 argument declared constructors toconstructors.static <P> Constructor<?>derivePropertiesFromRecordConstructor(Class<?> beanType, Map<String, P> propsByName, Function<String, P> propBuilder) Gets canonical constructor of given types and adds properties to the map, derived from constructor parameters.static BeanPropertyIntrospectorinstance()protected static booleanisGroovyMetaClass(Class<?> clazz) Helper method to detect Groovy's problematic metadata accessor type.pojoDefinitionForDeserialization(JSONReader r, Class<?> pojoType) pojoDefinitionForSerialization(JSONWriter w, Class<?> pojoType)
-
Field Details
-
NO_PROPS
-
-
Constructor Details
-
BeanPropertyIntrospector
public BeanPropertyIntrospector()
-
-
Method Details
-
instance
-
pojoDefinitionForDeserialization
-
pojoDefinitionForSerialization
-
derivePropertiesFromRecordConstructor
public static <P> Constructor<?> derivePropertiesFromRecordConstructor(Class<?> beanType, Map<String, P> propsByName, Function<String, P> propBuilder) Gets canonical constructor of given types and adds properties to the map, derived from constructor parameters. -
addNonRecordConstructors
Adds allbeanType's 0 and 1 argument declared constructors toconstructors. -
isGroovyMetaClass
Helper method to detect Groovy's problematic metadata accessor type.NOTE: Groovy MetaClass have cyclic reference, and hence the class containing it should not be serialized without either removing that reference, or skipping over such references.
-