Java 类org.springframework.beans.factory.config.YamlProcessor 实例源码

项目:cas-5.1.0    文件:CasCoreBootstrapStandaloneConfiguration.java   
private static Map<Object, Object> loadYamlProperties(final Resource... resource) {
    final YamlPropertiesFactoryBean factory = new YamlPropertiesFactoryBean();
    factory.setResolutionMethod(YamlProcessor.ResolutionMethod.OVERRIDE);
    factory.setResources(resource);
    factory.setSingleton(true);
    factory.afterPropertiesSet();
    return factory.getObject();
}