Package org.codehaus.jackson.map.annotate

Examples of org.codehaus.jackson.map.annotate.JsonSerialize.using()


          }
          else if (value instanceof String)
          {
            JsonSerialize serialize = curField.getAnnotation(JsonSerialize.class);
            if (serialize != null
              && serialize.using() == PluginReferenceSerializer.class)
              addPlugin(headerResponse, (String) value);
          }
          else if (!(value instanceof Number) && !(value instanceof Boolean))
            remaining.add(value);
        }
View Full Code Here


        /* 21-May-2009, tatu: Slight change; primary annotation is now
         *    @JsonSerialize; @JsonUseSerializer is deprecated
         */
        JsonSerialize ann = a.getAnnotation(JsonSerialize.class);
        if (ann != null) {
            Class<? extends JsonSerializer<?>> serClass = ann.using();
            if (serClass != JsonSerializer.None.class) {
                return serClass;
            }
        }
        JsonUseSerializer oldAnn = a.getAnnotation(JsonUseSerializer.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.