Package org.springframework.data.repository.config

Examples of org.springframework.data.repository.config.RepositoryConfigurationExtension


  /**
   * Register bean definition parsers in the namespace handler.
   */
  public final void init() {
    RepositoryConfigurationExtension extension = new CouchbaseRepositoryConfigurationExtension();
    registerBeanDefinitionParser("repositories", new RepositoryBeanDefinitionParser(extension));
    registerBeanDefinitionParser("couchbase", new CouchbaseParser());
    registerBeanDefinitionParser("jmx", new CouchbaseJmxParser());
    registerBeanDefinitionParser("template", new CouchbaseTemplateParser());
    registerBeanDefinitionParser("translation-service", new CouchbaseTranslationServiceParser());
View Full Code Here


   *
   * @see org.springframework.beans.factory.xml.NamespaceHandler#init()
   */
  @Override
  public void init() {
    RepositoryConfigurationExtension extension = new SimpleDbRepositoryConfigExtension();
    RepositoryBeanDefinitionParser repositoryBeanDefinitionParser = new RepositoryBeanDefinitionParser(extension);

    registerBeanDefinitionParser("repositories", repositoryBeanDefinitionParser);
  }
View Full Code Here

   *
   * @see org.springframework.beans.factory.xml.NamespaceHandler#init()
   */
  public void init() {

    RepositoryConfigurationExtension extension = new JpaRepositoryConfigExtension();
    RepositoryBeanDefinitionParser repositoryBeanDefinitionParser = new RepositoryBeanDefinitionParser(extension);

    registerBeanDefinitionParser("repositories", repositoryBeanDefinitionParser);
    registerBeanDefinitionParser("auditing", new AuditingBeanDefinitionParser());
  }
View Full Code Here

  @Test
  public void registersDefaultBeanPostProcessorsByDefault() {

    DefaultListableBeanFactory factory = new DefaultListableBeanFactory();

    RepositoryConfigurationExtension extension = new JpaRepositoryConfigExtension();
    extension.registerBeansForRoot(factory, configSource);

    Iterable<String> names = Arrays.asList(factory.getBeanDefinitionNames());

    assertThat(names, Matchers.<String> hasItem(Matchers.startsWith(PABPP_CLASS_NAME)));
    assertThat(names, Matchers.<String> hasItem(Matchers.startsWith(RIABPP_CLASS_NAME)));
View Full Code Here

  }

  private void assertOnlyOnePersistenceAnnotationBeanPostProcessorRegistered(DefaultListableBeanFactory factory,
      String expectedBeanName) {

    RepositoryConfigurationExtension extension = new JpaRepositoryConfigExtension();
    extension.registerBeansForRoot(factory, configSource);

    assertThat(factory.getBean(expectedBeanName), is(notNullValue()));
    exception.expect(NoSuchBeanDefinitionException.class);
    factory.getBeanDefinition("org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#1");
  }
View Full Code Here

   * @see org.springframework.beans.factory.xml.NamespaceHandler#init()
   */
  @Override
  public void init() {

    RepositoryConfigurationExtension extension = new SolrRepositoryConfigExtension();
    RepositoryBeanDefinitionParser parser = new RepositoryBeanDefinitionParser(extension);

    registerBeanDefinitionParser("repositories", parser);
    registerBeanDefinitionParser("embedded-solr-server", new EmbeddedSolrServerBeanDefinitionParser());
    registerBeanDefinitionParser("solr-server", new HttpSolrServerBeanDefinitionParser());
View Full Code Here

public class ElasticsearchNamespaceHandler extends NamespaceHandlerSupport {

  @Override
  public void init() {
    RepositoryConfigurationExtension extension = new ElasticsearchRepositoryConfigExtension();
    RepositoryBeanDefinitionParser parser = new RepositoryBeanDefinitionParser(extension);

    registerBeanDefinitionParser("repositories", parser);
    registerBeanDefinitionParser("node-client", new NodeClientBeanDefinitionParser());
    registerBeanDefinitionParser("transport-client", new TransportClientBeanDefinitionParser());
View Full Code Here

   * @see org.springframework.data.mongodb.config.MongoNamespaceHandler#init()
   */
  @Override
  public void init() {

    RepositoryConfigurationExtension extension = new MongoRepositoryConfigurationExtension();
    RepositoryBeanDefinitionParser repositoryBeanDefinitionParser = new RepositoryBeanDefinitionParser(extension);

    registerBeanDefinitionParser("repositories", repositoryBeanDefinitionParser);

    super.init();
View Full Code Here

class GemfireDataNamespaceHandler extends NamespaceHandlerSupport {

  @Override
  public void init() {
    // Repository namespace
    RepositoryConfigurationExtension extension = new GemfireRepositoryConfigurationExtension();
    registerBeanDefinitionParser("repositories", new RepositoryBeanDefinitionParser(extension));
    registerBeanDefinitionParser("function-executions", new FunctionExecutionBeanDefinitionParser());
    registerBeanDefinitionParser("datasource", new GemfireDataSourceParser());
    registerBeanDefinitionParser("json-region-autoproxy", new GemfireRegionAutoProxyParser());
  }
View Full Code Here

public class Neo4jNamespaceHandler extends NamespaceHandlerSupport {

  public void init() {

    RepositoryConfigurationExtension extension = new Neo4jRepositoryConfigurationExtension();
    RepositoryBeanDefinitionParser repositoryBeanDefinitionParser = new RepositoryBeanDefinitionParser(extension);

    registerBeanDefinitionParser("repositories", repositoryBeanDefinitionParser);
    registerBeanDefinitionParser("config", new DataGraphBeanDefinitionParser());
    registerBeanDefinitionParser("auditing", new Neo4jAuditingBeanDefinitionParser());
View Full Code Here

TOP

Related Classes of org.springframework.data.repository.config.RepositoryConfigurationExtension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.