public class YamlConfigurationFactory<T> extends Object implements FactoryBean<T>, MessageSourceAware, InitializingBean
Validator over it.| Constructor and Description | 
|---|
YamlConfigurationFactory(Class<?> type)
Sets a validation constructor which will be applied to the YAML doc to see whether
 it matches the expected Javabean. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterPropertiesSet()  | 
T | 
getObject()  | 
Class<?> | 
getObjectType()  | 
boolean | 
isSingleton()  | 
void | 
setExceptionIfInvalid(boolean exceptionIfInvalid)  | 
void | 
setMessageSource(MessageSource messageSource)  | 
void | 
setPropertyAliases(Map<Class<?>,Map<String,String>> propertyAliases)  | 
void | 
setResource(Resource resource)  | 
void | 
setValidator(Validator validator)  | 
void | 
setYaml(String yaml)  | 
public YamlConfigurationFactory(Class<?> type)
type - the root typepublic void setMessageSource(MessageSource messageSource)
setMessageSource in interface MessageSourceAwaremessageSource - the messageSource to setpublic void setPropertyAliases(Map<Class<?>,Map<String,String>> propertyAliases)
propertyAliases - the propertyAliases to setpublic void setYaml(String yaml)
yaml - the yaml to setpublic void setResource(Resource resource)
resource - the resource to setpublic void setValidator(Validator validator)
validator - the validator to setpublic void setExceptionIfInvalid(boolean exceptionIfInvalid)
public void afterPropertiesSet()
                        throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<T>public boolean isSingleton()
isSingleton in interface FactoryBean<T>Copyright © 2014. All rights reserved.