Examples of AfterburnerModule


Examples of com.fasterxml.jackson.module.afterburner.AfterburnerModule

        if ("raw".equals(key)) {
            return static_mapper;
        }

        ObjectMapper mapper = new ObjectMapper().registerModule(
                new AfterburnerModule()
        );

        if ("sym".equals(key)) {
            mapper.registerModule(
                    asSym(ruby)
View Full Code Here

Examples of com.fasterxml.jackson.module.afterburner.AfterburnerModule

        // the Json output. You can change that with annotations in your
        // models.
        module.setDefaultUseWrapper(false);
       
        XmlMapper xmlMapper = new XmlMapper(module);
        xmlMapper.registerModule(new AfterburnerModule());

       
        return xmlMapper;
       
    }
View Full Code Here

Examples of com.fasterxml.jackson.module.afterburner.AfterburnerModule

    public ObjectMapper get() {
       
        ObjectMapper objectMapper = new ObjectMapper();
       
        // Afterburner optimizes performance of Pojo to Json mapper
        objectMapper.registerModule(new AfterburnerModule());
       
        return objectMapper;
       
    }
View Full Code Here

Examples of com.fasterxml.jackson.module.afterburner.AfterburnerModule

//            new org.codehaus.jackson.smile.SmileFactory();
        ;
//        ((SmileFactory) jsonF).configure(SmileGenerator.Feature.CHECK_SHARED_NAMES, false);
           
        final ObjectMapper jsonMapper = new ObjectMapper(jsonF);
        jsonMapper.registerModule(new AfterburnerModule());

//      jsonMapper.configure(SerializationConfig.Feature.USE_STATIC_TYPING, true);

        /*
        final SmileFactory smileFactory = new SmileFactory();
View Full Code Here

Examples of com.fasterxml.jackson.module.afterburner.AfterburnerModule

        ObjectMapper mapperFast = new ObjectMapper(f);
       
        // !!! TEST -- to get profile info, comment out:
//        mapperSlow.registerModule(new AfterburnerModule());

        mapperFast.registerModule(new AfterburnerModule());
        new TestSerializePerf().testWith(mapperSlow, mapperFast);
    }
View Full Code Here

Examples of com.fasterxml.jackson.module.afterburner.AfterburnerModule

        JsonFactory f = new JsonFactory();
        ObjectMapper mapperSlow = new ObjectMapper(f);
        ObjectMapper mapperFast = new ObjectMapper(f);
       
        // !!! TEST -- to get profile info, comment out:
        mapperSlow.registerModule(new AfterburnerModule());

        mapperFast.registerModule(new AfterburnerModule());
        new TestDeserializePerf().testWith(mapperSlow, mapperFast);
    }
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.