类 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
  • 构造器详细资料

    • 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

      public String idFromValue(Object value)
    • idFromValueAndType

      public String idFromValueAndType(Object value, Class<?> suggestedType)
    • 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()