|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.jackson.map.deser.impl.PropertyBasedCreator
public final class 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 | |
|---|---|
protected Object[] |
_defaultValues
If some property values must always have a non-null value (like primitive types do), this array contains such default values. |
protected HashMap<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 ValueInstantiator |
_valueInstantiator
|
| Constructor Summary | |
|---|---|
PropertyBasedCreator(ValueInstantiator valueInstantiator)
|
|
| Method Summary | |
|---|---|
void |
assignDeserializer(SettableBeanProperty prop,
JsonDeserializer<Object> deser)
|
Object |
build(PropertyValueBuffer buffer)
|
SettableBeanProperty |
findCreatorProperty(String name)
|
Collection<SettableBeanProperty> |
getCreatorProperties()
|
PropertyValueBuffer |
startBuilding(JsonParser jp,
DeserializationContext ctxt)
Method called when starting to build a bean instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ValueInstantiator _valueInstantiator
protected final HashMap<String,SettableBeanProperty> _properties
protected final Object[] _defaultValues
protected final SettableBeanProperty[] _propertiesWithInjectables
| Constructor Detail |
|---|
public PropertyBasedCreator(ValueInstantiator valueInstantiator)
| Method Detail |
|---|
public Collection<SettableBeanProperty> getCreatorProperties()
public SettableBeanProperty findCreatorProperty(String name)
public void assignDeserializer(SettableBeanProperty prop,
JsonDeserializer<Object> deser)
public PropertyValueBuffer startBuilding(JsonParser jp,
DeserializationContext ctxt)
public Object build(PropertyValueBuffer buffer)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||