Package com.puppetlabs.geppetto.forge.util

Examples of com.puppetlabs.geppetto.forge.util.ValueSerializer


          new LenientModulefileParser(this).parseRubyAST(root, chain);
        }
        else {
          if(jsonFactory == null) {
            jsonFactory = new JsonFactory();
            serializer = new ValueSerializer() {
              @Override
              public void serialize(Appendable bld, Object value) throws IOException {
                JsonGenerator generator = jsonFactory.createJsonGenerator(CharStreams.asWriter(bld));
                generator.setCodec(new ObjectMapper(jsonFactory));
                generator.writeObject(value);
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.forge.util.ValueSerializer

Copyright © 2018 www.massapicom. 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.