org.springframework.data.repository.config.XmlRepositoryConfigurationSource Java Examples
The following examples show how to use
org.springframework.data.repository.config.XmlRepositoryConfigurationSource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SolrRepositoryConfigExtension.java From dubbox with Apache License 2.0 | 6 votes |
@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"); }
Example #2
Source File: DatastoreRepositoryConfigurationExtension.java From spring-cloud-gcp with Apache License 2.0 | 5 votes |
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); ParsingUtils.setPropertyReference(builder, element, "datastore-template-ref", "datastoreTemplate"); ParsingUtils.setPropertyReference(builder, element, "datastore-mapping-context-ref", "datastoreMappingContext"); }
Example #3
Source File: SpannerRepositoryConfigurationExtension.java From spring-cloud-gcp with Apache License 2.0 | 5 votes |
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); ParsingUtils.setPropertyReference(builder, element, "spanner-template-ref", "spannerTemplate"); ParsingUtils.setPropertyReference(builder, element, "spanner-mapping-context-ref", "spannerMappingContext"); }
Example #4
Source File: FirestoreRepositoryConfigurationExtension.java From spring-cloud-gcp with Apache License 2.0 | 5 votes |
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); ParsingUtils.setPropertyReference(builder, element, "firestore-template-ref", "firestoreTemplate"); ParsingUtils.setPropertyReference(builder, element, "firestore-mapping-context-ref", "firestoreMappingContext"); }
Example #5
Source File: MybatisRepositoryConfigExtension.java From spring-data-mybatis with Apache License 2.0 | 5 votes |
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Optional<String> enableDefaultTransactions = config .getAttribute(ENABLE_DEFAULT_TRANSACTIONS_ATTRIBUTE); if (enableDefaultTransactions.isPresent() && StringUtils.hasText(enableDefaultTransactions.get())) { builder.addPropertyValue(ENABLE_DEFAULT_TRANSACTIONS_ATTRIBUTE, enableDefaultTransactions.get()); } }
Example #6
Source File: CrateRepositoryConfigExtension.java From spring-data-crate with Apache License 2.0 | 4 votes |
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); builder.addPropertyReference("crateOperations", element.getAttribute("crate-template-ref")); }
Example #7
Source File: SimpleDbRepositoryConfigExtension.java From spring-data-simpledb with MIT License | 4 votes |
@Override public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) { Element element = config.getElement(); ParsingUtils.setPropertyReference(builder, element, SIMPLEDB_TEMPLATE_REF, "simpleDbOperations"); }
Example #8
Source File: DynamoDBRepositoryConfigExtension.java From spring-data-dynamodb with Apache License 2.0 | 3 votes |
@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"); }