public class CreatorCollector extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
CreatorCollector.Vanilla |
Modifier and Type | Field and Description |
---|---|
protected BeanDescription |
_beanDesc |
protected AnnotatedWithParams |
_booleanCreator |
protected boolean |
_canFixAccess |
protected AnnotatedWithParams |
_defaultConstructor
Reference to the default creator (constructor or factory method).
|
protected CreatorProperty[] |
_delegateArgs |
protected AnnotatedWithParams |
_delegateCreator |
protected AnnotatedWithParams |
_doubleCreator |
protected AnnotatedParameter |
_incompleteParameter |
protected AnnotatedWithParams |
_intCreator |
protected AnnotatedWithParams |
_longCreator |
protected CreatorProperty[] |
_propertyBasedArgs |
protected AnnotatedWithParams |
_propertyBasedCreator |
protected AnnotatedWithParams |
_stringCreator |
Constructor and Description |
---|
CreatorCollector(BeanDescription beanDesc,
boolean canFixAccess) |
Modifier and Type | Method and Description |
---|---|
void |
addBooleanCreator(AnnotatedWithParams creator) |
void |
addDelegatingCreator(AnnotatedWithParams creator,
CreatorProperty[] injectables) |
void |
addDoubleCreator(AnnotatedWithParams creator) |
void |
addIncompeteParameter(AnnotatedParameter parameter) |
void |
addIntCreator(AnnotatedWithParams creator) |
void |
addLongCreator(AnnotatedWithParams creator) |
void |
addPropertyCreator(AnnotatedWithParams creator,
CreatorProperty[] properties) |
void |
addStringCreator(AnnotatedWithParams creator) |
ValueInstantiator |
constructValueInstantiator(DeserializationConfig config) |
boolean |
hasDefaultCreator() |
void |
setDefaultCreator(AnnotatedWithParams creator)
Method called to indicate the default creator: no-arguments
constructor or factory method that is called to instantiate
a value before populating it with data.
|
protected AnnotatedWithParams |
verifyNonDup(AnnotatedWithParams newOne,
AnnotatedWithParams oldOne,
String type) |
protected final BeanDescription _beanDesc
protected final boolean _canFixAccess
protected AnnotatedWithParams _defaultConstructor
Note: name is a misnomer, after resolving of [JACKSON-850], since this can also point to factory method.
protected AnnotatedWithParams _stringCreator
protected AnnotatedWithParams _intCreator
protected AnnotatedWithParams _longCreator
protected AnnotatedWithParams _doubleCreator
protected AnnotatedWithParams _booleanCreator
protected AnnotatedWithParams _delegateCreator
protected CreatorProperty[] _delegateArgs
protected AnnotatedWithParams _propertyBasedCreator
protected CreatorProperty[] _propertyBasedArgs
protected AnnotatedParameter _incompleteParameter
public CreatorCollector(BeanDescription beanDesc, boolean canFixAccess)
public ValueInstantiator constructValueInstantiator(DeserializationConfig config)
public void setDefaultCreator(AnnotatedWithParams creator)
creator
- Creator method; no-arguments constructor or static
factory method.public void addStringCreator(AnnotatedWithParams creator)
public void addIntCreator(AnnotatedWithParams creator)
public void addLongCreator(AnnotatedWithParams creator)
public void addDoubleCreator(AnnotatedWithParams creator)
public void addBooleanCreator(AnnotatedWithParams creator)
public void addDelegatingCreator(AnnotatedWithParams creator, CreatorProperty[] injectables)
public void addPropertyCreator(AnnotatedWithParams creator, CreatorProperty[] properties)
public void addIncompeteParameter(AnnotatedParameter parameter)
public boolean hasDefaultCreator()
protected AnnotatedWithParams verifyNonDup(AnnotatedWithParams newOne, AnnotatedWithParams oldOne, String type)
Copyright © 2014 FasterXML. All Rights Reserved.