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

项目:spring-data-mybatis    文件:MybatisRepositoriesRegistrar.java   
@Override
public void registerBeanDefinitions(AnnotationMetadata annotationMetadata,
    BeanDefinitionRegistry registry) {
  Assert.notNull(resourceLoader, "ResourceLoader must not be null!");
  Assert.notNull(annotationMetadata, "AnnotationMetadata must not be null!");
  Assert.notNull(registry, "BeanDefinitionRegistry must not be null!");

  // Guard against calls for sub-classes
  if (annotationMetadata.getAnnotationAttributes(getAnnotation().getName()) == null) {
    return;
  }

  MybatisAnnotationRepositoryConfigurationSource configurationSource = new MybatisAnnotationRepositoryConfigurationSource(
      annotationMetadata, getAnnotation(), resourceLoader, environment, registry);

  RepositoryConfigurationExtension extension = getExtension();
  RepositoryConfigurationUtils.exposeRegistration(extension, registry, configurationSource);

  RepositoryConfigurationDelegate delegate = new RepositoryConfigurationDelegate(
      configurationSource, resourceLoader,
      environment);

  delegate.registerRepositoriesIn(registry, extension);
}
项目:lodsve-framework    文件:MongoBeanDefinitionRegistrar.java   
private void initMongoRepository(AnnotationMetadata annotationMetadata, BeanDefinitionRegistry registry) {
    AnnotationRepositoryConfigurationSource configurationSource = new LodsveAnnotationRepositoryConfigurationSource(annotationMetadata, EnableMongo.class, resourceLoader, environment);
    RepositoryConfigurationExtension extension = new LodsveMongoRepositoryConfigurationExtension(MONGO_TEMPLATE_BEAN_NAME);
    RepositoryConfigurationUtils.exposeRegistration(extension, registry, configurationSource);

    RepositoryConfigurationDelegate delegate = new RepositoryConfigurationDelegate(configurationSource, resourceLoader, environment);
    delegate.registerRepositoriesIn(registry, extension);
}
项目:spring-boot-starter-data-mybatis    文件:MybatisRepositoriesAutoConfigureRegistrar.java   
@Override
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
    BeanDefinitionRegistry registry) {
  if (null == properties.getMapperLocations() || properties.getMapperLocations().length == 0) {
    super.registerBeanDefinitions(importingClassMetadata, registry);
  } else {
    new RepositoryConfigurationDelegate(getConfigurationSource(registry), this.resourceLoader,
        this.environment).registerRepositoriesIn(registry,
        getRepositoryConfigurationExtension());
  }
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AbstractRepositoryConfigurationSourceSupport.java   
@Override
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
        BeanDefinitionRegistry registry) {
    new RepositoryConfigurationDelegate(getConfigurationSource(), this.resourceLoader,
            this.environment).registerRepositoriesIn(registry,
                    getRepositoryConfigurationExtension());
}
项目:spring-boot-concourse    文件:AbstractRepositoryConfigurationSourceSupport.java   
@Override
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
        BeanDefinitionRegistry registry) {
    new RepositoryConfigurationDelegate(getConfigurationSource(), this.resourceLoader,
            this.environment).registerRepositoriesIn(registry,
                    getRepositoryConfigurationExtension());
}
项目:contestparser    文件:AbstractRepositoryConfigurationSourceSupport.java   
@Override
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
        BeanDefinitionRegistry registry) {
    new RepositoryConfigurationDelegate(getConfigurationSource(), this.resourceLoader,
            this.environment).registerRepositoriesIn(registry,
                    getRepositoryConfigurationExtension());
}