Class CustomTypeIdResolver

java.lang.Object
com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
org.vrspace.server.core.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
  • Field Summary

    Fields inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase

    _baseType, _typeFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.annotation.JsonTypeInfo.Id
     
     
    idFromValueAndType(Object obj, Class<?> subType)
     
    void
    init(com.fasterxml.jackson.databind.JavaType baseType)
     
    com.fasterxml.jackson.databind.JavaType
    typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id)
     

    Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase

    getDescForKnownTypeIds, idFromBaseType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomTypeIdResolver

      public CustomTypeIdResolver()
  • Method Details

    • 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()
    • idFromValue

      public String idFromValue(Object obj)
    • 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