Class AbstractRepositoryConfigurationSourceSupport

java.lang.Object
org.springframework.boot.autoconfigure.data.AbstractRepositoryConfigurationSourceSupport
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware

public abstract class AbstractRepositoryConfigurationSourceSupport extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ResourceLoaderAware, org.springframework.context.EnvironmentAware
Base ImportBeanDefinitionRegistrar used to auto-configure Spring Data Repositories.
Since:
1.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Class<? extends Annotation>
    The Spring Data annotation used to enable the particular repository support.
    protected org.springframework.data.util.Streamable<String>
     
    protected org.springframework.data.repository.config.BootstrapMode
    The BootstrapMode for the particular repository support.
    protected abstract Class<?>
    The configuration class that will be used by Spring Boot as a template.
    protected abstract org.springframework.data.repository.config.RepositoryConfigurationExtension
    The RepositoryConfigurationExtension for the particular repository support.
    void
    registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
     
    void
    registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry, org.springframework.beans.factory.support.BeanNameGenerator importBeanNameGenerator)
     
    void
    setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
     
    void
    setEnvironment(org.springframework.core.env.Environment environment)
     
    void
    setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractRepositoryConfigurationSourceSupport

      public AbstractRepositoryConfigurationSourceSupport()
  • Method Details

    • registerBeanDefinitions

      public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry, org.springframework.beans.factory.support.BeanNameGenerator importBeanNameGenerator)
      Specified by:
      registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
    • registerBeanDefinitions

      public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Specified by:
      registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
    • getBasePackages

      protected org.springframework.data.util.Streamable<String> getBasePackages()
    • getAnnotation

      protected abstract Class<? extends Annotation> getAnnotation()
      The Spring Data annotation used to enable the particular repository support.
      Returns:
      the annotation class
    • getConfiguration

      protected abstract Class<?> getConfiguration()
      The configuration class that will be used by Spring Boot as a template.
      Returns:
      the configuration class
    • getRepositoryConfigurationExtension

      protected abstract org.springframework.data.repository.config.RepositoryConfigurationExtension getRepositoryConfigurationExtension()
      The RepositoryConfigurationExtension for the particular repository support.
      Returns:
      the repository configuration extension
    • getBootstrapMode

      protected org.springframework.data.repository.config.BootstrapMode getBootstrapMode()
      The BootstrapMode for the particular repository support. Defaults to BootstrapMode.DEFAULT.
      Returns:
      the bootstrap mode
    • setResourceLoader

      public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
      Specified by:
      setResourceLoader in interface org.springframework.context.ResourceLoaderAware
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
      Specified by:
      setEnvironment in interface org.springframework.context.EnvironmentAware