public final class PropertyBasedCreator extends Object
Modifier and Type | Field and Description |
---|---|
protected SettableBeanProperty[] |
_allProperties
Array of all Creator properties (based on arguments to constructor
or factory method).
|
protected int |
_propertyCount
Number of properties: usually same as size of
_propertyLookup ,
but not necessarily, when we have unnamed injectable properties. |
protected HashMap<String,SettableBeanProperty> |
_propertyLookup
Map that contains property objects for either constructor or factory
method (whichever one is null: one property for each
parameter for that one), keyed by logical property name
|
protected ValueInstantiator |
_valueInstantiator
Helper object that knows how to actually construct the instance by
invoking creator method with buffered arguments.
|
Modifier | Constructor and Description |
---|---|
protected |
PropertyBasedCreator(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] creatorProps,
boolean caseInsensitive,
boolean addAliases) |
protected |
PropertyBasedCreator(PropertyBasedCreator base,
HashMap<String,SettableBeanProperty> propertyLookup,
SettableBeanProperty[] allProperties) |
Modifier and Type | Method and Description |
---|---|
Object |
build(DeserializationContext ctxt,
PropertyValueBuffer buffer) |
static PropertyBasedCreator |
construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps)
Deprecated.
|
static PropertyBasedCreator |
construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps,
BeanPropertyMap allProperties)
Factory method used for building actual instances to be used with POJOS:
resolves deserializers, checks for "null values".
|
static PropertyBasedCreator |
construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps,
boolean caseInsensitive)
Factory method used for building actual instances to be used with types
OTHER than POJOs.
|
SettableBeanProperty |
findCreatorProperty(int propertyIndex) |
SettableBeanProperty |
findCreatorProperty(String name) |
Collection<SettableBeanProperty> |
properties() |
PropertyBasedCreator |
renameAll(NameTransformer transformer)
Mutant factory method for constructing a map where the names of all properties
are transformed using the given
NameTransformer . |
PropertyValueBuffer |
startBuilding(JsonParser p,
DeserializationContext ctxt,
ObjectIdReader oir)
Method called when starting to build a bean instance.
|
PropertyValueBuffer |
startBuildingWithAnySetter(JsonParser p,
DeserializationContext ctxt,
ObjectIdReader oir,
SettableAnyProperty anySetter)
Method called when starting to build a bean instance.
|
protected final int _propertyCount
_propertyLookup
,
but not necessarily, when we have unnamed injectable properties.protected final ValueInstantiator _valueInstantiator
protected final HashMap<String,SettableBeanProperty> _propertyLookup
protected final SettableBeanProperty[] _allProperties
protected PropertyBasedCreator(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] creatorProps, boolean caseInsensitive, boolean addAliases)
protected PropertyBasedCreator(PropertyBasedCreator base, HashMap<String,SettableBeanProperty> propertyLookup, SettableBeanProperty[] allProperties)
public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, BeanPropertyMap allProperties) throws JsonMappingException
JsonMappingException
public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, boolean caseInsensitive) throws JsonMappingException
JsonMappingException
@Deprecated public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps) throws JsonMappingException
JsonMappingException
public PropertyBasedCreator renameAll(NameTransformer transformer)
NameTransformer
.public Collection<SettableBeanProperty> properties()
public SettableBeanProperty findCreatorProperty(String name)
public SettableBeanProperty findCreatorProperty(int propertyIndex)
public PropertyValueBuffer startBuilding(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir)
public PropertyValueBuffer startBuildingWithAnySetter(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir, SettableAnyProperty anySetter)
public Object build(DeserializationContext ctxt, PropertyValueBuffer buffer) throws IOException
IOException
Copyright © 2008–2025 FasterXML. All rights reserved.