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 Iterable<String> |
getBasePackages() |
protected abstract Class<?> |
getConfiguration()
The configuration class that will be used by Spring Boot as a template.
|
protected abstract 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 abstract Class<? extends Annotation> getAnnotation()
protected abstract Class<?> getConfiguration()
protected abstract RepositoryConfigurationExtension getRepositoryConfigurationExtension()
RepositoryConfigurationExtension
for the particular repository support.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 © 2015 Pivotal Software, Inc.. All rights reserved.