类 AnnotionedJsonTypeIdResolver
java.lang.Object
com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
cn.dinodev.spring.commons.json.AnnotionedJsonTypeIdResolver
- 所有已实现的接口:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public class AnnotionedJsonTypeIdResolver
extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
- 作者:
- Cody Lu
-
字段概要
从类继承的字段 com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
_baseType, _typeFactory -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T extends Annotation>
voidaddAnnotion(Class<T> annoClass, Function<T, String> idExtractor, String packageToScan) com.fasterxml.jackson.annotation.JsonTypeInfo.IdidFromValue(Object value) idFromValueAndType(Object value, Class<?> suggestedType) voidinit(com.fasterxml.jackson.databind.JavaType bt) com.fasterxml.jackson.databind.JavaTypetypeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id) 从类继承的方法 com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
getDescForKnownTypeIds, idFromBaseType
-
构造器详细资料
-
AnnotionedJsonTypeIdResolver
public AnnotionedJsonTypeIdResolver()
-
-
方法详细资料
-
addAnnotion
public static <T extends Annotation> void addAnnotion(Class<T> annoClass, Function<T, String> idExtractor, @Nonnull String packageToScan) throws IOException- 抛出:
IOException
-
init
public void init(com.fasterxml.jackson.databind.JavaType bt) - 指定者:
init在接口中com.fasterxml.jackson.databind.jsontype.TypeIdResolver- 覆盖:
init在类中com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
idFromValue
-
idFromValueAndType
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id) throws IOException - 指定者:
typeFromId在接口中com.fasterxml.jackson.databind.jsontype.TypeIdResolver- 覆盖:
typeFromId在类中com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase- 抛出:
IOException
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
-