Class TypeIdResolverBase
java.lang.Object
org.codehaus.jackson.map.jsontype.impl.TypeIdResolverBase
- All Implemented Interfaces:
TypeIdResolver
- Direct Known Subclasses:
ClassNameIdResolver, TypeNameIdResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JavaTypeCommon base type for all polymorphic instances handled.protected final TypeFactory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypeIdResolverBase(JavaType baseType, TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod that will be called once before any type resolution calls; used to initialize instance with configuration.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TypeIdResolver
getMechanism, idFromValue, idFromValueAndType, typeFromId
-
Field Details
-
_typeFactory
-
_baseType
Common base type for all polymorphic instances handled.
-
-
Constructor Details
-
TypeIdResolverBase
-
-
Method Details
-
init
Description copied from interface:TypeIdResolverMethod that will be called once before any type resolution calls; used to initialize instance with configuration. This is necessary since instances may be created via reflection, without ability to call specific constructor to pass in configuration settings.- Specified by:
initin interfaceTypeIdResolver- Parameters:
bt- Base type for which this id resolver instance is used
-
idFromBaseType
- Since:
- 1.9.4
-