Class PropertyBasedCreator
- java.lang.Object
 - 
- com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator
 
 
- 
public final class PropertyBasedCreator extends java.lang.ObjectObject 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. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectbuild(DeserializationContext ctxt, PropertyValueBuffer buffer)static PropertyBasedCreatorconstruct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps)Deprecated.static PropertyBasedCreatorconstruct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, boolean caseInsensitive)Factory method used for building actual instances to be used with types OTHER than POJOs.static PropertyBasedCreatorconstruct(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".SettableBeanPropertyfindCreatorProperty(int propertyIndex)SettableBeanPropertyfindCreatorProperty(java.lang.String name)java.util.Collection<SettableBeanProperty>properties()PropertyValueBufferstartBuilding(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir)Method called when starting to build a bean instance. 
 - 
 
- 
- 
Method Detail
- 
construct
public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, BeanPropertyMap allProperties) throws JsonMappingException
Factory method used for building actual instances to be used with POJOS: resolves deserializers, checks for "null values".- Throws:
 JsonMappingException- Since:
 - 2.9
 
 
- 
construct
public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, boolean caseInsensitive) throws JsonMappingException
Factory method used for building actual instances to be used with types OTHER than POJOs. resolves deserializers and checks for "null values".- Throws:
 JsonMappingException- Since:
 - 2.9
 
 
- 
construct
@Deprecated public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps) throws JsonMappingException
Deprecated.- Throws:
 JsonMappingException
 
- 
properties
public java.util.Collection<SettableBeanProperty> properties()
 
- 
findCreatorProperty
public SettableBeanProperty findCreatorProperty(java.lang.String name)
 
- 
findCreatorProperty
public SettableBeanProperty findCreatorProperty(int propertyIndex)
 
- 
startBuilding
public PropertyValueBuffer startBuilding(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir)
Method called when starting to build a bean instance.- Since:
 - 2.1 (added ObjectIdReader parameter -- existed in previous versions without)
 
 
- 
build
public java.lang.Object build(DeserializationContext ctxt, PropertyValueBuffer buffer) throws java.io.IOException
- Throws:
 java.io.IOException
 
 - 
 
 -