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,
BeanNameGenerator importBeanNameGenerator) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setEnvironment(Environment environment) |
void |
setResourceLoader(ResourceLoader resourceLoader) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerBeanDefinitions
public AbstractRepositoryConfigurationSourceSupport()
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, BeanNameGenerator importBeanNameGenerator)
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 © 2020 Pivotal Software, Inc.. All rights reserved.