Java 类org.springframework.data.repository.config.XmlRepositoryConfigurationSource 实例源码

项目:spring-data-mybatis    文件:MybatisRepositoryConfigExtension.java   
@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);
    }
}
项目:dubbox-solr    文件:SolrRepositoryConfigExtension.java   
@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");
}
项目:ef-orm    文件:GqRepositoryConfigExtension.java   
@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);
    }
}
项目:spring-data-solr    文件:SolrRepositoryConfigExtension.java   
@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"));
    }
}
项目:spring-data-spanner    文件:SpannerRepositoryConfigurationExtension.java   
@Override
public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) {
  Element element = config.getElement();

  ParsingUtils.setPropertyReference(builder, element, SPANNER_TEMPLATE_REF, "spannerOperations");
}
项目:spring-data-snowdrop    文件:SnowdropRepositoryConfigExtension.java   
@Override
public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) {
    Element element = config.getElement();
    builder.addPropertyReference("datasourceMapper", element.getAttribute("datasource-mapper-ref"));
}
项目:spring-boot-starter-mybatis    文件:MyBatisRepositoryConfigExtension.java   
@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);
}
项目:spring-boot-starter-mybatis    文件:MyBatisRepositoryConfigExtension.java   
@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);
}
项目:spring-data-crate    文件:CrateRepositoryConfigExtension.java   
@Override
public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) {

    Element element = config.getElement();
    builder.addPropertyReference("crateOperations", element.getAttribute("crate-template-ref"));
}
项目:spring-data-simpledb    文件:SimpleDbRepositoryConfigExtension.java   
@Override
public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) {
    Element element = config.getElement();
    ParsingUtils.setPropertyReference(builder, element, SIMPLEDB_TEMPLATE_REF, "simpleDbOperations");
}
项目:spring-data-dynamodb    文件:DynamoDBRepositoryConfigExtension.java   
@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");


}