Class Config

    • Field Detail

      • configName

        private final java.lang.String configName
      • configs

        private static volatile java.util.Map<java.lang.String,​Config> configs
      • decoderCacheKeys

        private volatile java.util.Map<java.lang.reflect.Type,​java.lang.String> decoderCacheKeys
      • encoderCacheKeys

        private volatile java.util.Map<java.lang.reflect.Type,​java.lang.String> encoderCacheKeys
      • primitiveOmitValues

        private static final java.util.Map<java.lang.Class,​OmitValue> primitiveOmitValues
      • INSTANCE

        public static final Config INSTANCE
    • Constructor Detail

      • Config

        protected Config​(java.lang.String configName,
                         Config.Builder builder)
    • Method Detail

      • configName

        public java.lang.String configName()
      • getDecoderCacheKey

        public java.lang.String getDecoderCacheKey​(java.lang.reflect.Type type)
      • getEncoderCacheKey

        public java.lang.String getEncoderCacheKey​(java.lang.reflect.Type type)
      • indentionStep

        public int indentionStep()
      • omitDefaultValue

        public boolean omitDefaultValue()
      • escapeUnicode

        public boolean escapeUnicode()
      • detectUnwrappers

        private void detectUnwrappers​(ClassDescriptor desc,
                                      java.util.List<java.lang.reflect.Method> allMethods)
      • detectWrappers

        private void detectWrappers​(ClassDescriptor desc,
                                    java.util.List<java.lang.reflect.Method> allMethods)
      • getParamNames

        private java.lang.String[] getParamNames​(java.lang.Object obj,
                                                 int paramCount)
      • reflectCall

        private java.lang.Object reflectCall​(java.lang.Object obj,
                                             java.lang.String methodName,
                                             java.lang.Object... args)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • detectStaticFactory

        private void detectStaticFactory​(ClassDescriptor desc,
                                         java.util.List<java.lang.reflect.Method> allMethods)
      • updateBindingWithJsonProperty

        private void updateBindingWithJsonProperty​(Binding binding,
                                                   JsonProperty jsonProperty)
      • createOmitValue

        protected OmitValue createOmitValue​(java.lang.reflect.Type valueType)
      • getJsonWrapper

        protected JsonWrapper getJsonWrapper​(java.lang.annotation.Annotation[] annotations)
      • getJsonUnwrapper

        protected JsonUnwrapper getJsonUnwrapper​(java.lang.annotation.Annotation[] annotations)
      • getJsonCreator

        protected JsonCreator getJsonCreator​(java.lang.annotation.Annotation[] annotations)
      • getJsonProperty

        protected JsonProperty getJsonProperty​(java.lang.annotation.Annotation[] annotations)
      • getJsonIgnore

        protected JsonIgnore getJsonIgnore​(java.lang.annotation.Annotation[] annotations)
      • getAnnotation

        protected static <T extends java.lang.annotation.Annotation> T getAnnotation​(java.lang.annotation.Annotation[] annotations,
                                                                                     java.lang.Class<T> annotationClass)