Class EntityTypeResolver

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsontype.TypeIdResolver

    public class EntityTypeResolver
    extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
    • Constructor Detail

      • EntityTypeResolver

        public EntityTypeResolver()
    • Method Detail

      • init

        public void init​(com.fasterxml.jackson.databind.JavaType javaType)
        Specified by:
        init in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
        Overrides:
        init in class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
      • idFromValueAndType

        public String idFromValueAndType​(Object o,
                                         Class<?> aClass)
      • typeFromId

        public com.fasterxml.jackson.databind.JavaType typeFromId​(com.fasterxml.jackson.databind.DatabindContext context,
                                                                  String id)
                                                           throws IOException
        Specified by:
        typeFromId in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
        Overrides:
        typeFromId in class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
        Throws:
        IOException
      • getMechanism

        public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
      • getSubClasses

        public static Set<Class<?>> getSubClasses​(Class<?> rawClass)