org.springframework.boot.config
Class JsonParserFactory

java.lang.Object
  extended by org.springframework.boot.config.JsonParserFactory

public abstract class JsonParserFactory
extends Object

Factory to create a JsonParser.

Author:
Dave Syer
See Also:
JacksonJsonParser, YamlJsonParser, SimpleJsonParser

Constructor Summary
JsonParserFactory()
           
 
Method Summary
static JsonParser getJsonParser()
          Static factory for the "best" JSON parser available on the classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonParserFactory

public JsonParserFactory()
Method Detail

getJsonParser

public static JsonParser getJsonParser()
Static factory for the "best" JSON parser available on the classpath. Tries Jackson 2, then Snake YAML, and then falls back to the SimpleJsonParser.

Returns:
a JsonParser


Copyright © 2013. All Rights Reserved.