Class TypeIdResolverBase

    • Field Detail

      • _typeFactory

        protected final TypeFactory _typeFactory
      • _baseType

        protected final JavaType _baseType
        Common base type for all polymorphic instances handled.
    • Constructor Detail

      • TypeIdResolverBase

        protected TypeIdResolverBase​(JavaType baseType,
                                     TypeFactory typeFactory)
    • Method Detail

      • init

        public void init​(JavaType bt)
        Description copied from interface: TypeIdResolver
        Method 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:
        init in interface TypeIdResolver
        Parameters:
        bt - Base type for which this id resolver instance is used
      • idFromBaseType

        public String idFromBaseType()
        Since:
        1.9.4