public abstract class AbstractRepositoryConfigurationSourceSupport extends Object implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.ResourceLoaderAware, org.springframework.context.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(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
public AbstractRepositoryConfigurationSourceSupport()
public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
registerBeanDefinitions in interface org.springframework.context.annotation.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(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwareCopyright © 2020 Pivotal Software, Inc.. All rights reserved.