public class DefaultConfigFactory extends net.spy.memcached.compat.SpyObject implements ConfigFactory
ConfigFactory for creating a Config out of raw JSON.| Constructor and Description |
|---|
DefaultConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
Config |
create(java.io.File source)
Create a
Config from a File. |
Config |
create(org.codehaus.jettison.json.JSONObject source)
Create a
Config from a JSONObject. |
Config |
create(org.codehaus.jettison.json.JSONObject source,
Config oldConfig) |
Config |
create(java.lang.String source)
Create a
Config from a raw JSON String. |
public Config create(java.io.File source)
Config from a File.create in interface ConfigFactorysource - the source to look it up from.Config.public Config create(java.lang.String source)
Config from a raw JSON String.create in interface ConfigFactorysource - the raw JSON string.Config.public Config create(org.codehaus.jettison.json.JSONObject source)
Config from a JSONObject.create in interface ConfigFactorysource - the raw JSONObject.Config.public Config create(org.codehaus.jettison.json.JSONObject source, Config oldConfig)
create in interface ConfigFactoryCopyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.