com.fasterxml.jackson.databind.deser.impl
Class CreatorCollector
java.lang.Object
com.fasterxml.jackson.databind.deser.impl.CreatorCollector
public class CreatorCollector
- extends Object
Container class for storing information on creators (based on annotations,
visibility), to be able to build actual instantiator later on.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_beanDesc
protected final BeanDescription _beanDesc
_canFixAccess
protected final boolean _canFixAccess
_defaultConstructor
protected AnnotatedWithParams _defaultConstructor
- Reference to the default creator (constructor or factory method).
Note: name is a misnomer, after resolving of [JACKSON-850], since this
can also point to factory method.
_stringCreator
protected AnnotatedWithParams _stringCreator
_intCreator
protected AnnotatedWithParams _intCreator
_longCreator
protected AnnotatedWithParams _longCreator
_doubleCreator
protected AnnotatedWithParams _doubleCreator
_booleanCreator
protected AnnotatedWithParams _booleanCreator
_delegateCreator
protected AnnotatedWithParams _delegateCreator
_delegateArgs
protected CreatorProperty[] _delegateArgs
_propertyBasedCreator
protected AnnotatedWithParams _propertyBasedCreator
_propertyBasedArgs
protected CreatorProperty[] _propertyBasedArgs
CreatorCollector
public CreatorCollector(BeanDescription beanDesc,
boolean canFixAccess)
constructValueInstantiator
public ValueInstantiator constructValueInstantiator(DeserializationConfig config)
setDefaultConstructor
@Deprecated
public void setDefaultConstructor(AnnotatedConstructor ctor)
- Deprecated. since 2.1, use
setDefaultCreator(com.fasterxml.jackson.databind.introspect.AnnotatedWithParams)
instead.
setDefaultCreator
public 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. Default creator is
only used if no other creators are indicated.
- Parameters:
creator
- Creator method; no-arguments constructor or static
factory method.
addStringCreator
public void addStringCreator(AnnotatedWithParams creator)
addIntCreator
public void addIntCreator(AnnotatedWithParams creator)
addLongCreator
public void addLongCreator(AnnotatedWithParams creator)
addDoubleCreator
public void addDoubleCreator(AnnotatedWithParams creator)
addBooleanCreator
public void addBooleanCreator(AnnotatedWithParams creator)
addDelegatingCreator
public void addDelegatingCreator(AnnotatedWithParams creator,
CreatorProperty[] injectables)
addPropertyCreator
public void addPropertyCreator(AnnotatedWithParams creator,
CreatorProperty[] properties)
hasDefaultCreator
public boolean hasDefaultCreator()
- Since:
- 2.1
verifyNonDup
protected AnnotatedWithParams verifyNonDup(AnnotatedWithParams newOne,
AnnotatedWithParams oldOne,
String type)
Copyright © 2012 FasterXML. All Rights Reserved.