Examples of disableDefaultTyping()


Examples of org.codehaus.jackson.map.ObjectMapper.disableDefaultTyping()

  protected ObjectMapper createObjectMapper(boolean typeInformationIsIncluded) {
    ObjectMapper mapper = new ObjectMapperProvider().getContext(ObjectMapper.class);
    if (typeInformationIsIncluded) {
      mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
    } else {
      mapper.disableDefaultTyping();
    }
    return mapper;
  }

  /**
 
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.