public class ActionResolver extends Object implements com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Modifier and Type | Method and Description |
---|---|
Class<? extends Action> |
fromId(String id) |
String |
getDescForKnownTypeIds() |
static ActionResolver |
getInstance() |
static ActionResolver |
getInstance(ClassLoader classLoader) |
com.fasterxml.jackson.annotation.JsonTypeInfo.Id |
getMechanism() |
String |
idFromBaseType() |
String |
idFromValue(Object value) |
String |
idFromValueAndType(Object value,
Class<?> aClass) |
void |
init(com.fasterxml.jackson.databind.JavaType baseType) |
String |
toId(Class<?> aClass) |
com.fasterxml.jackson.databind.JavaType |
typeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext,
String id) |
public static ActionResolver getInstance(ClassLoader classLoader)
public static ActionResolver getInstance()
public Class<? extends Action> fromId(String id) throws IOException
IOException
public void init(com.fasterxml.jackson.databind.JavaType baseType)
init
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
getMechanism
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public String idFromValue(Object value)
idFromValue
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public String idFromValueAndType(Object value, Class<?> aClass)
idFromValueAndType
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public String idFromBaseType()
idFromBaseType
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, String id) throws IOException
typeFromId
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
IOException
public String getDescForKnownTypeIds()
getDescForKnownTypeIds
in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Copyright © 2019 JBoss by Red Hat. All rights reserved.