@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { String enableDefaultTransactions = config.getAttribute(ENABLE_DEFAULT_TRANSACTIONS_ATTRIBUTE); if (StringUtils.hasText(enableDefaultTransactions)) { builder.addPropertyValue(ENABLE_DEFAULT_TRANSACTIONS_ATTRIBUTE, enableDefaultTransactions); } }
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); if (!Boolean.valueOf(element.getAttribute("multicore-support"))) { builder.addPropertyReference(BeanDefinition.SOLR_OPERATIONS.getBeanName(), element.getAttribute("solr-template-ref")); } else { builder.addPropertyReference(BeanDefinition.SOLR_CLIENT.getBeanName(), element.getAttribute("solr-client-ref")); } if (StringUtils.hasText(element.getAttribute("schema-creation-support"))) { builder.addPropertyValue("schemaCreationSupport", element.getAttribute("schema-creation-support")); } builder.addPropertyReference(BeanDefinition.SOLR_MAPPTING_CONTEXT.getBeanName(), "solrMappingContext"); }
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { String enableDefaultTransactions = config.getAttribute(ENABLE_DEFAULT_TRANSACTIONS_ATTRIBUTE).orElse(null); if (StringUtils.hasText(enableDefaultTransactions)) { builder.addPropertyValue(ENABLE_DEFAULT_TRANSACTIONS_ATTRIBUTE, enableDefaultTransactions); } }
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); if (!Boolean.valueOf(element.getAttribute("multicore-support"))) { builder.addPropertyReference("solrOperations", element.getAttribute("solr-template-ref")); } else { builder.addPropertyReference("solrServer", element.getAttribute("solr-server-ref")); } if (StringUtils.hasText(element.getAttribute("schema-creation-support"))) { builder.addPropertyValue("schemaCreationSupport", element.getAttribute("schema-creation-support")); } }
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); ParsingUtils.setPropertyReference(builder, element, SPANNER_TEMPLATE_REF, "spannerOperations"); }
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); builder.addPropertyReference("datasourceMapper", element.getAttribute("datasource-mapper-ref")); }
@Override public void postProcess(final BeanDefinitionBuilder builder, final XmlRepositoryConfigurationSource config) { final Element element = config.getElement(); ParsingUtils.setPropertyReference(builder, element, SQL_SESSION_TEMPLATE_REF_XML, SQL_SESSION_TEMPLATE); ParsingUtils.setPropertyValue(builder, element, TRANSACTION_MANAGER_REF_XML, TRANSACTION_MANAGER); }
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); builder.addPropertyReference("crateOperations", element.getAttribute("crate-template-ref")); }
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); ParsingUtils.setPropertyReference(builder, element, SIMPLEDB_TEMPLATE_REF, "simpleDbOperations"); }
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); ParsingUtils.setPropertyReference(builder, element, AMAZON_DYNAMODB_REF, "amazonDynamoDB"); ParsingUtils.setPropertyReference(builder, element, DYNAMO_DB_MAPPER_CONFIG_REF, "dynamoDBMapperConfig"); ParsingUtils.setPropertyReference(builder, element, DYNAMO_DB_OPERATIONS_REF, "dynamoDBOperations"); }