Examples of StdTypeResolverBuilder


Examples of org.codehaus.jackson.map.jsontype.impl.StdTypeResolverBuilder

    XmlElementRefs elemRefs = findAnnotation(XmlElementRefs.class, am, false, false, false);
    if (elems == null && elemRefs == null) {
      return null;
    }

    TypeResolverBuilder<?> b = new StdTypeResolverBuilder();
    // JAXB always uses type name as id
    b = b.init(JsonTypeInfo.Id.NAME, null);
    // and let's consider WRAPPER_OBJECT to be canonical inclusion method
    b = b.inclusion(JsonTypeInfo.As.WRAPPER_OBJECT);
    return b;       
  }
View Full Code Here

Examples of org.codehaus.jackson.map.jsontype.impl.StdTypeResolverBuilder

     *
     * @since 1.7
     */
    protected StdTypeResolverBuilder _constructStdTypeResolverBuilder()
    {
        return new StdTypeResolverBuilder();
    }
View Full Code Here

Examples of org.codehaus.jackson.map.jsontype.impl.StdTypeResolverBuilder

            b = ClassUtil.createInstance(resAnn.value(), false);
        } else { // if not, use standard one, if indicated by annotations
            if (info == null || info.use() == JsonTypeInfo.Id.NONE) {
                return null;
            }
            b = new StdTypeResolverBuilder();
        }
        // Does it define a custom type id resolver?
        JsonTypeIdResolver idResInfo = ac.getAnnotation(JsonTypeIdResolver.class);
        TypeIdResolver idRes = (idResInfo == null) ? null
                : ClassUtil.createInstance(idResInfo.value(), false);
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.