com.fasterxml.jackson.databind.jsontype.TypeIdResolver
for Avro type IDs embedded in schemas. Avro generally uses class names,
but we want to also support named subtypes so that developers can easily remap the embedded type IDs to a different runtime class.
Modifier and Type | Field and Description |
---|---|
private final Map | |
private static final long |
Access | Constructor and Description |
---|---|
public | AvroTypeIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv, Collection<NamedType> subTypes)
|
public |
Modifier and Type | Method and Description |
---|---|
protected JavaType | |
public void | registerSubtype(Class<?> type, String name)
Overrides com.
|
_idTypes | back to summary |
---|---|
private final Map<String, Class<?>> _idTypes |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides com. |
AvroTypeIdResolver | back to summary |
---|---|
public AvroTypeIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv, Collection<NamedType> subTypes) |
AvroTypeIdResolver | back to summary |
---|---|
public AvroTypeIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv) |
_typeFromId | back to summary |
---|---|
protected JavaType _typeFromId(String id, DatabindContext ctxt) throws IOException Overrides com.
|
registerSubtype | back to summary |
---|---|
public void registerSubtype(Class<?> type, String name) Overrides com.
|