public abstract class AbstractRepositoryConfigurationSourceSupport extends Object implements ImportBeanDefinitionRegistrar, BeanFactoryAware, ResourceLoaderAware, EnvironmentAware
ImportBeanDefinitionRegistrar used to auto-configure Spring Data
Repositories.| Constructor and Description |
|---|
AbstractRepositoryConfigurationSourceSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<? extends Annotation> |
getAnnotation()
The Spring Data annotation used to enable the particular repository support.
|
protected org.springframework.data.util.Streamable<String> |
getBasePackages() |
protected org.springframework.data.repository.config.BootstrapMode |
getBootstrapMode()
The
BootstrapMode for the particular repository support. |
protected abstract Class<?> |
getConfiguration()
The configuration class that will be used by Spring Boot as a template.
|
protected abstract org.springframework.data.repository.config.RepositoryConfigurationExtension |
getRepositoryConfigurationExtension()
The
RepositoryConfigurationExtension 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) |
public AbstractRepositoryConfigurationSourceSupport()
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, BeanNameGenerator importBeanNameGenerator)
registerBeanDefinitions in interface ImportBeanDefinitionRegistrarpublic void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
registerBeanDefinitions in interface ImportBeanDefinitionRegistrarprotected org.springframework.data.util.Streamable<String> getBasePackages()
protected abstract Class<? extends Annotation> getAnnotation()
protected abstract Class<?> getConfiguration()
protected abstract org.springframework.data.repository.config.RepositoryConfigurationExtension getRepositoryConfigurationExtension()
RepositoryConfigurationExtension for the particular repository support.protected org.springframework.data.repository.config.BootstrapMode getBootstrapMode()
BootstrapMode for the particular repository support. Defaults to
BootstrapMode.DEFAULT.public void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader in interface ResourceLoaderAwarepublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionpublic void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAware