public abstract class AbstractRepositoryConfigurationSourceSupport extends Object implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.beans.factory.BeanClassLoaderAware, 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 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(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
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.ImportBeanDefinitionRegistrar
protected abstract Class<? extends Annotation> getAnnotation()
protected abstract Class<?> getConfiguration()
protected abstract RepositoryConfigurationExtension getRepositoryConfigurationExtension()
RepositoryConfigurationExtension
for the particular repository support.public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.EnvironmentAware
Copyright © 2014. All rights reserved.