| Modifier and Type | Class and Description |
|---|---|
| public static enum | ConstructorDetector.SingleArgConstructor
Definition of alternate handling modes of single-argument constructors
that are annotated with |
| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | _allowJDKTypeCtors
Whether auto-detection of constructors of "JDK types" (those in
packages |
| protected final boolean | _requireCtorAnnotation
Whether explicit |
| protected final ConstructorDetector. | |
| public static final ConstructorDetector | DEFAULT
Instance used by default, which:
|
| public static final ConstructorDetector | EXPLICIT_ONLY
Instance similar to |
| private static final long | |
| public static final ConstructorDetector | USE_DELEGATING
Instance similar to |
| public static final ConstructorDetector | USE_PROPERTIES_BASED
Instance similar to |
| Access | Constructor and Description |
|---|---|
| protected | ConstructorDetector(ConstructorDetector.
|
| protected | ConstructorDetector(ConstructorDetector.
Constructors used for default configurations which only varies
by |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | Returns: True if implicit constructor detection should be enabled; false if notValue type to consider rawType)Accessor that combines checks for whether implicit creators are allowed and, if so, whether JDK type constructors are allowed (if type is JDK type) to determine whether implicit constructor detection should be enabled for given type or not. |
| public boolean | |
| public boolean | |
| public ConstructorDetector. | |
| public ConstructorDetector | |
| public ConstructorDetector | |
| public ConstructorDetector |
| _allowJDKTypeCtors | back to summary |
|---|---|
| protected final boolean _allowJDKTypeCtors Whether auto-detection of constructors of "JDK types" (those in
packages | |
| _requireCtorAnnotation | back to summary |
|---|---|
| protected final boolean _requireCtorAnnotation Whether explicit | |
| _singleArgMode | back to summary |
|---|---|
| protected final ConstructorDetector. | |
| DEFAULT | back to summary |
|---|---|
| public static final ConstructorDetector DEFAULT Instance used by default, which:
| |
| EXPLICIT_ONLY | back to summary |
|---|---|
| public static final ConstructorDetector EXPLICIT_ONLY Instance similar to | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| USE_DELEGATING | back to summary |
|---|---|
| public static final ConstructorDetector USE_DELEGATING Instance similar to | |
| USE_PROPERTIES_BASED | back to summary |
|---|---|
| public static final ConstructorDetector USE_PROPERTIES_BASED Instance similar to | |
| ConstructorDetector | back to summary |
|---|---|
| protected ConstructorDetector(ConstructorDetector. | |
| ConstructorDetector | back to summary |
|---|---|
| protected ConstructorDetector(ConstructorDetector. Constructors used for default configurations which only varies
by | |
| allowJDKTypeConstructors | back to summary |
|---|---|
| public boolean allowJDKTypeConstructors() | |
| requireCtorAnnotation | back to summary |
|---|---|
| public boolean requireCtorAnnotation() | |
| shouldIntrospectorImplicitConstructors | back to summary |
|---|---|
| public boolean shouldIntrospectorImplicitConstructors(Class<?> rawType) Accessor that combines checks for whether implicit creators are allowed and, if so, whether JDK type constructors are allowed (if type is JDK type) to determine whether implicit constructor detection should be enabled for given type or not.
| |
| singleArgCreatorDefaultsToDelegating | back to summary |
|---|---|
| public boolean singleArgCreatorDefaultsToDelegating() | |
| singleArgCreatorDefaultsToProperties | back to summary |
|---|---|
| public boolean singleArgCreatorDefaultsToProperties() | |
| singleArgMode | back to summary |
|---|---|
| public ConstructorDetector. | |
| withAllowJDKTypeConstructors | back to summary |
|---|---|
| public ConstructorDetector withAllowJDKTypeConstructors(boolean state) | |
| withRequireAnnotation | back to summary |
|---|---|
| public ConstructorDetector withRequireAnnotation(boolean state) | |
| withSingleArgMode | back to summary |
|---|---|
| public ConstructorDetector withSingleArgMode(ConstructorDetector. | |
com.fasterxml.jackson.annotation.JsonCreator
but without "mode" definition (or explicit name for the argument):
this is the case where two interpretations
are possible -- "properties" (in which case the argument is named parameter
of a JSON Object) and "delegating (in which case the argument maps to the
whole JSON value).
Default choice is HEURISTIC (which is Jackson pre-2.12 always uses)
Note
does NOT have any effect if explicit @JsonCreator annotation
is required.
| Modifier and Type | Field and Description |
|---|---|
| public static final ConstructorDetector. | DELEGATING
Assume "delegating" mode if not explicitly annotated otherwise |
| public static final ConstructorDetector. | HEURISTIC
Use heuristics to see if "properties" mode is to be used (POJO has a property with the same name as the implicit name [if available] of the constructor argument). |
| public static final ConstructorDetector. | PROPERTIES
Assume "properties" mode if not explicitly annotated otherwise |
| public static final ConstructorDetector. | REQUIRE_MODE
Refuse to decide implicit mode and instead throw a
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ConstructorDetector. | |
| public static ConstructorDetector. |
| DELEGATING | back to summary |
|---|---|
| public static final ConstructorDetector. Assume "delegating" mode if not explicitly annotated otherwise | |
| HEURISTIC | back to summary |
|---|---|
| public static final ConstructorDetector. Use heuristics to see if "properties" mode is to be used (POJO has a property with the same name as the implicit name [if available] of the constructor argument). Note this is the default choice for Jackson versions before 2.12. | |
| PROPERTIES | back to summary |
|---|---|
| public static final ConstructorDetector. Assume "properties" mode if not explicitly annotated otherwise | |
| REQUIRE_MODE | back to summary |
|---|---|
| public static final ConstructorDetector. Refuse to decide implicit mode and instead throw a
| |
| SingleArgConstructor | back to summary |
|---|---|
| private SingleArgConstructor() | |
| valueOf | back to summary |
|---|---|
| public static ConstructorDetector. | |
| values | back to summary |
|---|---|
| public static ConstructorDetector. | |