Package org.vrspace.server.core
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
-
-
Constructor Summary
Constructors Constructor Description CustomTypeIdResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.annotation.JsonTypeInfo.Id
getMechanism()
String
idFromValue(Object obj)
String
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)
-
-
-
Method Detail
-
init
public void init(com.fasterxml.jackson.databind.JavaType baseType)
- Specified by:
init
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
- Overrides:
init
in classcom.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id)
- Specified by:
typeFromId
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
- Overrides:
typeFromId
in classcom.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
-