Class CustomTypeIdResolver

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

    public class CustomTypeIdResolver
    extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
    Custom jackson type resolver, used to deserialize Commands residing in org.vrspace.server.dto package
    Author:
    joe
    • Constructor Detail

      • CustomTypeIdResolver

        public CustomTypeIdResolver()
    • Method Detail

      • init

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

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

        public String idFromValueAndType​(Object obj,
                                         Class<?> subType)
      • typeFromId

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