Class PropertyBasedCreator
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.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
Modifier and TypeFieldDescriptionprotected 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_propertyLookup
, but not necessarily, when we have unnamed injectable properties.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 ValueInstantiator
Helper object that knows how to actually construct the instance by invoking creator method with buffered arguments. -
Constructor Summary
ModifierConstructorDescriptionprotected
PropertyBasedCreator
(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] creatorProps, boolean caseInsensitive, boolean addAliases) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(DeserializationContext ctxt, PropertyValueBuffer buffer) static PropertyBasedCreator
construct
(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps) Deprecated.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.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".findCreatorProperty
(int propertyIndex) findCreatorProperty
(String name) startBuilding
(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir) Method called when starting to build a bean instance.
-
Field Details
-
_propertyCount
protected final int _propertyCountNumber of properties: usually same as size of_propertyLookup
, but not necessarily, when we have unnamed injectable properties. -
_valueInstantiator
Helper object that knows how to actually construct the instance by invoking creator method with buffered arguments. -
_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 -
_allProperties
Array that contains properties that expect value to inject, if any; null if no injectable values are expected.
-
-
Constructor Details
-
PropertyBasedCreator
protected PropertyBasedCreator(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] creatorProps, boolean caseInsensitive, boolean addAliases)
-
-
Method Details
-
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
-
findCreatorProperty
-
findCreatorProperty
-
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
- Throws:
IOException
-