Example usage for org.springframework.data.repository.config AnnotationRepositoryConfigurationSource getAttributes

List of usage examples for org.springframework.data.repository.config AnnotationRepositoryConfigurationSource getAttributes

Introduction

In this page you can find the example usage for org.springframework.data.repository.config AnnotationRepositoryConfigurationSource getAttributes.

Prototype

public AnnotationAttributes getAttributes() 

Source Link

Document

Returns the AnnotationAttributes of the annotation configured.

Usage

From source file:io.twipple.springframework.data.clusterpoint.repository.config.ClusterpointRepositoryConfigurationExtension.java

@Override
public void postProcess(final BeanDefinitionBuilder builder,
        final AnnotationRepositoryConfigurationSource config) {
    AnnotationAttributes attributes = config.getAttributes();
    builder.addPropertyReference(CLUSTERPOINT_OPERATIONS_PROPERTY,
            attributes.getString(CLUSTERPOINT_TEMPLATE_REF_PROPERTY));
}

From source file:org.springdata.ehcache.repository.config.EhcacheRepositoryConfigurationExtension.java

@Override
public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) {

    AnnotationAttributes attributes = config.getAttributes();

    String templateRef = attributes.getString(JAVA_CACHE_TEMPLATE_REF);
    if (!StringUtils.hasText(templateRef)) {
        templateRef = ConfigConstants.TEMPLATE_DEFAULT_ID;
    }//from   w  w  w .  ja v a2 s  .  c om

    builder.addPropertyReference("ehcacheTemplate", templateRef);
}

From source file:com.create.mybatis.repository.config.MyBatisRepositoryConfigExtension.java

@Override
public void postProcess(final BeanDefinitionBuilder builder,
        final AnnotationRepositoryConfigurationSource config) {
    final AnnotationAttributes attributes = config.getAttributes();
    builder.addPropertyReference(SQL_SESSION_TEMPLATE, attributes.getString(SQL_SESSION_TEMPLATE_REF));
    builder.addPropertyValue(TRANSACTION_MANAGER, attributes.getString(TRANSACTION_MANAGER_REF));
}

From source file:org.socialsignin.spring.data.dynamodb.repository.config.DynamoDBRepositoryConfigExtension.java

@Override
public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) {
    AnnotationAttributes attributes = config.getAttributes();

    postProcess(builder, attributes.getString("amazonDynamoDBRef"),
            attributes.getString("dynamoDBMapperConfigRef"), attributes.getString("dynamoDBOperationsRef"));

}

From source file:com._4dconcept.springframework.data.marklogic.repository.config.MarklogicRepositoryConfigurationExtension.java

@Override
public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) {
    AnnotationAttributes attributes = config.getAttributes();

    builder.addPropertyReference("marklogicOperations", attributes.getString("marklogicTemplateRef"));
}

From source file:com.frank.search.solr.repository.config.SolrRepositoryConfigExtension.java

@Override
public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) {

    AnnotationAttributes attributes = config.getAttributes();
    if (!attributes.getBoolean("multicoreSupport")) {
        builder.addPropertyReference(BeanDefinition.SOLR_OPERATIONS.getBeanName(),
                attributes.getString("solrTemplateRef"));
    } else {/*from  w  ww .j  ava  2s  . c o m*/
        builder.addPropertyReference(BeanDefinition.SOLR_CLIENT.getBeanName(),
                attributes.getString("solrClientRef"));
    }
    builder.addPropertyValue("schemaCreationSupport", attributes.getBoolean("schemaCreationSupport"));
    builder.addPropertyReference(BeanDefinition.SOLR_MAPPTING_CONTEXT.getBeanName(), "solrMappingContext");
}