public final class PropertyBasedCreator extends Object
Modifier and Type | Field and Description |
---|---|
protected SettableBeanProperty[] |
_allProperties
Array that contains properties that expect value to inject, if any;
null if no injectable values are expected.
|
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 |
Modifier | Constructor and Description |
---|---|
protected |
PropertyBasedCreator(ValueInstantiator valueInstantiator,
SettableBeanProperty[] creatorProps) |
Modifier and Type | Method and Description |
---|---|
Object |
build(DeserializationContext ctxt,
PropertyValueBuffer buffer) |
static PropertyBasedCreator |
construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcProps)
Factory method used for building actual instances: resolves deserializers
and checks for "null values".
|
SettableBeanProperty |
findCreatorProperty(int propertyIndex) |
SettableBeanProperty |
findCreatorProperty(String name) |
Collection<SettableBeanProperty> |
properties() |
PropertyValueBuffer |
startBuilding(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
ObjectIdReader oir)
Method called when starting to build a bean instance.
|
protected final ValueInstantiator _valueInstantiator
protected final HashMap<String,SettableBeanProperty> _propertyLookup
protected final int _propertyCount
_propertyLookup
,
but not necessarily, when we have unnamed injectable properties.protected final SettableBeanProperty[] _allProperties
protected PropertyBasedCreator(ValueInstantiator valueInstantiator, SettableBeanProperty[] creatorProps)
public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcProps) throws JsonMappingException
JsonMappingException
public Collection<SettableBeanProperty> properties()
public SettableBeanProperty findCreatorProperty(String name)
public SettableBeanProperty findCreatorProperty(int propertyIndex)
public PropertyValueBuffer startBuilding(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, ObjectIdReader oir)
public Object build(DeserializationContext ctxt, PropertyValueBuffer buffer) throws IOException
IOException
Copyright © 2014–2015 FasterXML. All rights reserved.