public class BeanPropertyIntrospector extends Object
POJODefinition) to build general POJO readers
(deserializers) and writers (serializers).
Note that most of the usage is via ValueReaderLocator and
ValueWriterLocator
| Modifier and Type | Field and Description |
|---|---|
protected static POJODefinition.Prop[] |
NO_PROPS |
| Constructor and Description |
|---|
BeanPropertyIntrospector() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addNonRecordConstructors(Class<?> beanType,
BeanConstructors constructors)
Adds all
beanType's 0 and 1 argument declared constructors to constructors. |
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 BeanPropertyIntrospector |
instance() |
protected static boolean |
isGroovyMetaClass(Class<?> clazz)
Helper method to detect Groovy's problematic metadata accessor type.
|
POJODefinition |
pojoDefinitionForDeserialization(JSONReader r,
Class<?> pojoType) |
POJODefinition |
pojoDefinitionForSerialization(JSONWriter w,
Class<?> pojoType) |
protected static final POJODefinition.Prop[] NO_PROPS
public static BeanPropertyIntrospector instance()
public POJODefinition pojoDefinitionForDeserialization(JSONReader r, Class<?> pojoType)
public POJODefinition pojoDefinitionForSerialization(JSONWriter w, Class<?> pojoType)
public static <P> Constructor<?> derivePropertiesFromRecordConstructor(Class<?> beanType, Map<String,P> propsByName, Function<String,P> propBuilder)
public static void addNonRecordConstructors(Class<?> beanType, BeanConstructors constructors)
beanType's 0 and 1 argument declared constructors to constructors.protected static boolean isGroovyMetaClass(Class<?> clazz)
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.
Copyright © 2026 FasterXML. All rights reserved.