Class AbstractRepositoryConfigurationSourceSupport
java.lang.Object
org.springframework.boot.autoconfigure.data.AbstractRepositoryConfigurationSourceSupport
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,ImportBeanDefinitionRegistrar
,EnvironmentAware
,ResourceLoaderAware
public abstract class AbstractRepositoryConfigurationSourceSupport
extends Object
implements ImportBeanDefinitionRegistrar, BeanFactoryAware, ResourceLoaderAware, EnvironmentAware
Base
ImportBeanDefinitionRegistrar
used to auto-configure Spring Data
Repositories.- Since:
- 1.0.0
- Author:
- Phillip Webb, Dave Syer, Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
TheBootstrapMode
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
TheRepositoryConfigurationExtension
for the particular repository support.void
registerBeanDefinitions
(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) void
registerBeanDefinitions
(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, BeanNameGenerator importBeanNameGenerator) void
setBeanFactory
(BeanFactory beanFactory) void
setEnvironment
(Environment environment) void
setResourceLoader
(ResourceLoader resourceLoader)
-
Constructor Details
-
AbstractRepositoryConfigurationSourceSupport
public AbstractRepositoryConfigurationSourceSupport()
-
-
Method Details
-
registerBeanDefinitions
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, BeanNameGenerator importBeanNameGenerator) - Specified by:
registerBeanDefinitions
in interfaceImportBeanDefinitionRegistrar
-
registerBeanDefinitions
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) - Specified by:
registerBeanDefinitions
in interfaceImportBeanDefinitionRegistrar
-
getBasePackages
-
getAnnotation
The Spring Data annotation used to enable the particular repository support.- Returns:
- the annotation 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()TheRepositoryConfigurationExtension
for the particular repository support.- Returns:
- the repository configuration extension
-
getBootstrapMode
protected org.springframework.data.repository.config.BootstrapMode getBootstrapMode()TheBootstrapMode
for the particular repository support. Defaults toBootstrapMode.DEFAULT
.- Returns:
- the bootstrap mode
-
setResourceLoader
- Specified by:
setResourceLoader
in interfaceResourceLoaderAware
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
setEnvironment
- Specified by:
setEnvironment
in interfaceEnvironmentAware
-