Class RepositoryBeanDefinitionRegistrarSupport
java.lang.Object
org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport
- All Implemented Interfaces:
Aware
,ImportBeanDefinitionRegistrar
,EnvironmentAware
,ResourceLoaderAware
public abstract class RepositoryBeanDefinitionRegistrarSupport
extends Object
implements ImportBeanDefinitionRegistrar, ResourceLoaderAware, EnvironmentAware
Base class to implement
ImportBeanDefinitionRegistrar
s to enable repository- Author:
- Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Class<? extends Annotation>
Return the annotation to obtain configuration information from.protected abstract RepositoryConfigurationExtension
Returns theRepositoryConfigurationExtension
for store specific callbacks andBeanDefinition
post-processing.void
registerBeanDefinitions
(AnnotationMetadata metadata, BeanDefinitionRegistry registry) Deprecated.void
registerBeanDefinitions
(AnnotationMetadata metadata, BeanDefinitionRegistry registry, BeanNameGenerator generator) void
setEnvironment
(Environment environment) void
setResourceLoader
(ResourceLoader resourceLoader)
-
Constructor Details
-
RepositoryBeanDefinitionRegistrarSupport
public RepositoryBeanDefinitionRegistrarSupport()
-
-
Method Details
-
setResourceLoader
- Specified by:
setResourceLoader
in interfaceResourceLoaderAware
-
setEnvironment
- Specified by:
setEnvironment
in interfaceEnvironmentAware
-
registerBeanDefinitions
@Deprecated public void registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionRegistry registry) Deprecated.since 2.2, callregisterBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry, BeanNameGenerator)
instead.Forwarding toregisterBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry, BeanNameGenerator)
for backwards compatibility reasons so that tests in downstream modules do not accidentally invoke the super type's default implementation.- Specified by:
registerBeanDefinitions
in interfaceImportBeanDefinitionRegistrar
- See Also:
-
registerBeanDefinitions
public void registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionRegistry registry, BeanNameGenerator generator) - Specified by:
registerBeanDefinitions
in interfaceImportBeanDefinitionRegistrar
-
getAnnotation
Return the annotation to obtain configuration information from. Will be wrappen into anAnnotationRepositoryConfigurationSource
so have a look at the constants in there for what annotation attributes it expects.- Returns:
-
getExtension
Returns theRepositoryConfigurationExtension
for store specific callbacks andBeanDefinition
post-processing.- Returns:
- See Also:
-
registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry, BeanNameGenerator)
instead.