Class CreatorCollector
java.lang.Object
com.fasterxml.jackson.databind.deser.impl.CreatorCollector
Container class for storing information on creators (based on annotations,
visibility), to be able to build actual
ValueInstantiator later on.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBigDecimalCreator(AnnotatedWithParams creator, boolean explicit) voidaddBigIntegerCreator(AnnotatedWithParams creator, boolean explicit) voidaddBooleanCreator(AnnotatedWithParams creator, boolean explicit) voidaddDelegatingCreator(AnnotatedWithParams creator, boolean explicit, SettableBeanProperty[] injectables, int delegateeIndex) voidaddDoubleCreator(AnnotatedWithParams creator, boolean explicit) voidaddIntCreator(AnnotatedWithParams creator, boolean explicit) voidaddLongCreator(AnnotatedWithParams creator, boolean explicit) voidaddPropertyCreator(AnnotatedWithParams creator, boolean explicit, SettableBeanProperty[] properties) voidaddStringCreator(AnnotatedWithParams creator, boolean explicit) booleanbooleanbooleanvoidsetDefaultCreator(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.
-
Constructor Details
-
CreatorCollector
-
-
Method Details
-
constructValueInstantiator
public ValueInstantiator constructValueInstantiator(DeserializationContext ctxt) throws JsonMappingException - Throws:
JsonMappingException
-
setDefaultCreator
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
-
addIntCreator
-
addLongCreator
-
addBigIntegerCreator
-
addDoubleCreator
-
addBigDecimalCreator
-
addBooleanCreator
-
addDelegatingCreator
public void addDelegatingCreator(AnnotatedWithParams creator, boolean explicit, SettableBeanProperty[] injectables, int delegateeIndex) -
addPropertyCreator
public void addPropertyCreator(AnnotatedWithParams creator, boolean explicit, SettableBeanProperty[] properties) -
hasDefaultCreator
public boolean hasDefaultCreator()- Since:
- 2.1
-
hasDelegatingCreator
public boolean hasDelegatingCreator()- Since:
- 2.6
-
hasPropertyBasedCreator
public boolean hasPropertyBasedCreator()- Since:
- 2.6
-