public final class PropertyBasedCreator
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.Object[] |
_defaultValues |
If some property values must always have a non-null value (like
primitive types do), this array contains such default values.
|
protected java.util.HashMap<java.lang.String,SettableBeanProperty> |
_properties |
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 SettableBeanProperty[] |
_propertiesWithInjectables |
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
_properties ,
but not necessarily, when we have unnamed injectable properties. |
protected ValueInstantiator |
_valueInstantiator |
Constructor | Description |
---|---|
PropertyBasedCreator(ValueInstantiator valueInstantiator) |
Modifier and Type | Method | Description |
---|---|---|
void |
assignDeserializer(SettableBeanProperty prop,
JsonDeserializer<java.lang.Object> deser) |
|
java.lang.Object |
build(PropertyValueBuffer buffer) |
|
SettableBeanProperty |
findCreatorProperty(java.lang.String name) |
|
java.util.Collection<SettableBeanProperty> |
getCreatorProperties() |
|
PropertyValueBuffer |
startBuilding(JsonParser jp,
DeserializationContext ctxt) |
Method called when starting to build a bean instance.
|
protected final ValueInstantiator _valueInstantiator
protected final java.util.HashMap<java.lang.String,SettableBeanProperty> _properties
protected final int _propertyCount
_properties
,
but not necessarily, when we have unnamed injectable properties.protected java.lang.Object[] _defaultValues
protected final SettableBeanProperty[] _propertiesWithInjectables
public PropertyBasedCreator(ValueInstantiator valueInstantiator)
public java.util.Collection<SettableBeanProperty> getCreatorProperties()
public SettableBeanProperty findCreatorProperty(java.lang.String name)
public void assignDeserializer(SettableBeanProperty prop, JsonDeserializer<java.lang.Object> deser)
public PropertyValueBuffer startBuilding(JsonParser jp, DeserializationContext ctxt)
public java.lang.Object build(PropertyValueBuffer buffer) throws java.io.IOException
java.io.IOException