StdTypeResolverBuilder specifically used with
Default Typing.
Composition/sub-classing gets quite tricky here: ideally we would just
extend XmlTypeResolverBuilder but unfortunately inheritance hierarchy
does not allow this.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DefaultingXmlTypeResolverBuilder(PolymorphicTypeValidator ptv, DefaultTyping applicability, JsonTypeInfo.
|
| public | DefaultingXmlTypeResolverBuilder(PolymorphicTypeValidator ptv, DefaultTyping applicability, String propertyName)
|
| Modifier and Type | Method and Description |
|---|---|
| protected TypeIdResolver | idResolver(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser)
Overrides tools. Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration. |
| public StdTypeResolverBuilder | init(JsonTypeInfo.
Overrides tools. Implements tools. Initialization method that is called right after constructing the builder instance, in cases where information could not be passed directly (for example when instantiated for an annotation) |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| DefaultingXmlTypeResolverBuilder | back to summary |
|---|---|
| public DefaultingXmlTypeResolverBuilder(PolymorphicTypeValidator ptv, DefaultTyping applicability, JsonTypeInfo. | |
| DefaultingXmlTypeResolverBuilder | back to summary |
|---|---|
| public DefaultingXmlTypeResolverBuilder(PolymorphicTypeValidator ptv, DefaultTyping applicability, String propertyName) | |
| idResolver | back to summary |
|---|---|
| protected TypeIdResolver idResolver(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) Overrides tools. Doc from tools. Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.
| |
| init | back to summary |
|---|---|
| public StdTypeResolverBuilder init(JsonTypeInfo. Overrides tools. Implements tools. Doc from tools. Initialization method that is called right after constructing the builder instance, in cases where information could not be passed directly (for example when instantiated for an annotation)
| |