Class CreatorCollector
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.impl.CreatorCollector
-
public class CreatorCollector extends java.lang.Object
Container class for storing information on creators (based on annotations, visibility), to be able to build actualValueInstantiator
later on.
-
-
Constructor Summary
Constructors Constructor Description CreatorCollector(BeanDescription beanDesc, MapperConfig<?> config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBigDecimalCreator(AnnotatedWithParams creator, boolean explicit)
void
addBigIntegerCreator(AnnotatedWithParams creator, boolean explicit)
void
addBooleanCreator(AnnotatedWithParams creator, boolean explicit)
void
addDelegatingCreator(AnnotatedWithParams creator, boolean explicit, SettableBeanProperty[] injectables, int delegateeIndex)
void
addDoubleCreator(AnnotatedWithParams creator, boolean explicit)
void
addIntCreator(AnnotatedWithParams creator, boolean explicit)
void
addLongCreator(AnnotatedWithParams creator, boolean explicit)
void
addPropertyCreator(AnnotatedWithParams creator, boolean explicit, SettableBeanProperty[] properties)
void
addStringCreator(AnnotatedWithParams creator, boolean explicit)
ValueInstantiator
constructValueInstantiator(DeserializationContext ctxt)
boolean
hasDefaultCreator()
boolean
hasDelegatingCreator()
boolean
hasPropertyBasedCreator()
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.
-
-
-
Constructor Detail
-
CreatorCollector
public CreatorCollector(BeanDescription beanDesc, MapperConfig<?> config)
-
-
Method Detail
-
constructValueInstantiator
public ValueInstantiator constructValueInstantiator(DeserializationContext ctxt) throws JsonMappingException
- Throws:
JsonMappingException
-
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, boolean explicit)
-
addIntCreator
public void addIntCreator(AnnotatedWithParams creator, boolean explicit)
-
addLongCreator
public void addLongCreator(AnnotatedWithParams creator, boolean explicit)
-
addBigIntegerCreator
public void addBigIntegerCreator(AnnotatedWithParams creator, boolean explicit)
-
addDoubleCreator
public void addDoubleCreator(AnnotatedWithParams creator, boolean explicit)
-
addBigDecimalCreator
public void addBigDecimalCreator(AnnotatedWithParams creator, boolean explicit)
-
addBooleanCreator
public void addBooleanCreator(AnnotatedWithParams creator, boolean explicit)
-
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
-
-