Class PropertyBasedCreator
java.lang.Object
org.codehaus.jackson.map.deser.impl.PropertyBasedCreator
Object that is used to collect arguments for non-default creator
(non-default-constructor, or argument-taking factory method)
before creator can be called.
Since ordering of JSON properties is not guaranteed, this may
require buffering of values other than ones being passed to
creator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object[]
If some property values must always have a non-null value (like primitive types do), this array contains such default values.protected final HashMap<String,
SettableBeanProperty> 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 nameprotected final SettableBeanProperty[]
Array that contains properties that expect value to inject, if any; null if no injectable values are expected.protected final int
Number of properties: usually same as size of_properties
, but not necessarily, when we have unnamed injectable properties.protected final ValueInstantiator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assignDeserializer
(SettableBeanProperty prop, JsonDeserializer<Object> deser) build
(PropertyValueBuffer buffer) findCreatorProperty
(String name) startBuilding
(JsonParser jp, DeserializationContext ctxt) Method called when starting to build a bean instance.
-
Field Details
-
_valueInstantiator
-
_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 -
_propertyCount
protected final int _propertyCountNumber of properties: usually same as size of_properties
, but not necessarily, when we have unnamed injectable properties. -
_defaultValues
If some property values must always have a non-null value (like primitive types do), this array contains such default values. -
_propertiesWithInjectables
Array that contains properties that expect value to inject, if any; null if no injectable values are expected.- Since:
- 1.9
-
-
Constructor Details
-
PropertyBasedCreator
-
-
Method Details
-
getCreatorProperties
-
findCreatorProperty
-
assignDeserializer
-
startBuilding
Method called when starting to build a bean instance. -
build
- Throws:
IOException
-