类 AbstractRepositoryConfigurationSourceSupport
- java.lang.Object
- org.springframework.boot.autoconfigure.data.AbstractRepositoryConfigurationSourceSupport
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.annotation.ImportBeanDefinitionRegistrar
,org.springframework.context.EnvironmentAware
,org.springframework.context.ResourceLoaderAware
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
BaseImportBeanDefinitionRegistrar
used to auto-configure Spring Data Repositories.
构造器概要
构造器 构造器 说明 AbstractRepositoryConfigurationSourceSupport()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 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 org.springframework.data.repository.config.RepositoryConfigurationExtension
getRepositoryConfigurationExtension()
TheRepositoryConfigurationExtension
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)
构造器详细资料
AbstractRepositoryConfigurationSourceSupport
public AbstractRepositoryConfigurationSourceSupport()
方法详细资料
registerBeanDefinitions
public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
- 指定者:
registerBeanDefinitions
在接口中org.springframework.context.annotation.ImportBeanDefinitionRegistrar
getBasePackages
protected Iterable<String> getBasePackages()
getAnnotation
protected abstract Class<? extends Annotation> getAnnotation()
The Spring Data annotation used to enable the particular repository support.- 返回:
- the annotation class
getConfiguration
protected abstract Class<?> getConfiguration()
The configuration class that will be used by Spring Boot as a template.- 返回:
- the configuration class
getRepositoryConfigurationExtension
protected abstract org.springframework.data.repository.config.RepositoryConfigurationExtension getRepositoryConfigurationExtension()
TheRepositoryConfigurationExtension
for the particular repository support.- 返回:
- the repository configuration extension
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- 指定者:
setResourceLoader
在接口中org.springframework.context.ResourceLoaderAware
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- 指定者:
setBeanFactory
在接口中org.springframework.beans.factory.BeanFactoryAware
- 抛出:
org.springframework.beans.BeansException
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware