@Override protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { super.doParse(element, parserContext, builder); Map<String, String> attributeMap = new HashMap<String, String>(); parseWriteConcern(element, attributeMap); parseMongoOptionsElement(element, attributeMap); BeanDefinitionBuilder cloudMongoConfigurationBeanBuilder = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.cloud.service.document.MongoDbFactoryConfig"); for (String key : new String[]{WRITE_CONCERN, CONNECTIONS_PER_HOST, MAX_WAIT_TIME}) { String value = attributeMap.get(key); cloudMongoConfigurationBeanBuilder.addConstructorArgValue(value); } builder.addConstructorArgValue(cloudMongoConfigurationBeanBuilder.getBeanDefinition()); }
@Override protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { super.doParse(element, parserContext, builder); Map<String, String> attributeMap = new HashMap<String, String>(); parseWriteConcern(element, attributeMap); parseMongoOptionsElement(element, parserContext, attributeMap); BeanDefinitionBuilder cloudMongoConfigurationBeanBuilder = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.cloud.service.document.MongoDbFactoryConfig"); for (String key : new String[]{WRITE_CONCERN, CONNECTIONS_PER_HOST, MAX_WAIT_TIME}) { String value = attributeMap.get(key); cloudMongoConfigurationBeanBuilder.addConstructorArgValue(value); } builder.addConstructorArgValue(cloudMongoConfigurationBeanBuilder.getBeanDefinition()); }
@Override protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { super.doParse(element, parserContext, builder); Map<String, String> attributeMap = new HashMap<String, String>(); parseWriteConcern(element, attributeMap); parseMongoOptionsElement(element, attributeMap); BeanDefinitionBuilder cloudMongoConfigurationBeanBuilder = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.cloud.service.document.MongoDbFactoryConfig"); for (String key : new String[]{WRITE_CONCERN, CONNECTIONS_PER_HOST, MAX_WAIT_TIME}) { String value = attributeMap.get(key); cloudMongoConfigurationBeanBuilder.addConstructorArgValue(value); } builder.addConstructorArgValue(cloudMongoConfigurationBeanBuilder.getBeanDefinition()); }