public abstract class AbstractRepositoryConfigurationSourceSupport extends Object implements BeanFactoryAware, ImportBeanDefinitionRegistrar, 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 |
setBeanFactory(BeanFactory beanFactory) |
void |
setEnvironment(Environment environment) |
void |
setResourceLoader(ResourceLoader resourceLoader) |
public AbstractRepositoryConfigurationSourceSupport()
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
registerBeanDefinitions
in interface ImportBeanDefinitionRegistrar
protected 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 ResourceLoaderAware
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.