net.sourceforge.yamlbeans
Class YamlConfig.ReadConfig

java.lang.Object
  extended by net.sourceforge.yamlbeans.YamlConfig.ReadConfig
Enclosing class:
YamlConfig

public static class YamlConfig.ReadConfig
extends java.lang.Object


Method Summary
 void setClassLoader(java.lang.ClassLoader classLoader)
          Sets the class loader to use to find classes read from the YAML.
 void setConstructorParameters(java.lang.reflect.Constructor constructor, java.lang.String[] parameterNames)
          Sets the names of the constructor parameters so classes without no-arg constructors can be instantiated.
 void setDefaultVersion(Version defaultVersion)
          Sets the default YAML version to expect if a YAML document does not explicitly specify a version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDefaultVersion

public void setDefaultVersion(Version defaultVersion)
Sets the default YAML version to expect if a YAML document does not explicitly specify a version. Default is 1.1.


setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)
Sets the class loader to use to find classes read from the YAML.


setConstructorParameters

public void setConstructorParameters(java.lang.reflect.Constructor constructor,
                                     java.lang.String[] parameterNames)
Sets the names of the constructor parameters so classes without no-arg constructors can be instantiated. The Java 6+ annotation java.beans.ConstructorProperties can be used instead of this method.