类 DictionarySerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Object>
cn.jrack.dict.core.serializer.DictionarySerializer
所有已实现的接口:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.ser.ContextualSerializer

@Component public class DictionarySerializer extends com.fasterxml.jackson.databind.JsonSerializer<Object> implements com.fasterxml.jackson.databind.ser.ContextualSerializer
  • 嵌套类概要

    从类继承的嵌套类/接口 com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • 构造器概要

    构造器
    构造器
    说明
     
    字典注解
  • 方法概要

    修饰符和类型
    方法
    说明
    com.fasterxml.jackson.databind.JsonSerializer<?>
    createContextual(com.fasterxml.jackson.databind.SerializerProvider serializerProvider, com.fasterxml.jackson.databind.BeanProperty beanProperty)
     
    void
    serialize(Object o, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
     
    void
    setUserServer(DictionaryHandler dictionaryHandler)
     

    从类继承的方法 com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • DictionarySerializer

      public DictionarySerializer(String code, String fieldName)
      字典注解
    • DictionarySerializer

      public DictionarySerializer()
  • 方法详细资料

    • setUserServer

      @Autowired public void setUserServer(DictionaryHandler dictionaryHandler)
    • serialize

      public void serialize(Object o, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException
      指定者:
      serialize 在类中 com.fasterxml.jackson.databind.JsonSerializer<Object>
      抛出:
      IOException
    • createContextual

      public com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider serializerProvider, com.fasterxml.jackson.databind.BeanProperty beanProperty) throws com.fasterxml.jackson.databind.JsonMappingException
      指定者:
      createContextual 在接口中 com.fasterxml.jackson.databind.ser.ContextualSerializer
      抛出:
      com.fasterxml.jackson.databind.JsonMappingException