org.elasticsearch.common.settings.loader
Class YamlSettingsLoader

java.lang.Object
  extended by org.elasticsearch.common.settings.loader.XContentSettingsLoader
      extended by org.elasticsearch.common.settings.loader.YamlSettingsLoader
All Implemented Interfaces:
SettingsLoader

public class YamlSettingsLoader
extends XContentSettingsLoader

Settings loader that loads (parses) the settings in a yaml format by flattening them into a map.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.settings.loader.SettingsLoader
SettingsLoader.Helper
 
Constructor Summary
YamlSettingsLoader()
           
 
Method Summary
 XContentType contentType()
           
 Map<String,String> load(String source)
          Loads (parses) the settings from a source string.
 
Methods inherited from class org.elasticsearch.common.settings.loader.XContentSettingsLoader
load, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YamlSettingsLoader

public YamlSettingsLoader()
Method Detail

contentType

public XContentType contentType()
Specified by:
contentType in class XContentSettingsLoader

load

public Map<String,String> load(String source)
                        throws IOException
Description copied from interface: SettingsLoader
Loads (parses) the settings from a source string.

Specified by:
load in interface SettingsLoader
Overrides:
load in class XContentSettingsLoader
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.