Interface RepositoryConfigurationExtension
- All Known Implementing Classes:
RepositoryConfigurationExtensionSupport
public interface RepositoryConfigurationExtension
SPI to implement store specific extension to the repository bean definition registration process.
- Author:
- Oliver Gierke
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default location of the Spring Data named queries.Returns the descriptive name of the module.<T extends RepositoryConfigurationSource>
Collection<RepositoryConfiguration<T>>getRepositoryConfigurations
(T configSource, ResourceLoader loader, boolean strictMatchesOnly) Returns allRepositoryConfiguration
s obtained through the givenRepositoryConfigurationSource
.Returns the name of the repository factory class to be used.void
postProcess
(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) Callback to post process theBeanDefinition
built from annotations and tweak the configuration if necessary.void
postProcess
(BeanDefinitionBuilder builder, RepositoryConfigurationSource config) Callback to post process theBeanDefinition
and tweak the configuration if necessary.void
postProcess
(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) Callback to post process theBeanDefinition
built from XML and tweak the configuration if necessary.void
registerBeansForRoot
(BeanDefinitionRegistry registry, RepositoryConfigurationSource configurationSource) Callback to register additional bean definitions for a repositories root node.
-
Method Details
-
getModuleName
String getModuleName()Returns the descriptive name of the module.- Returns:
-
getRepositoryConfigurations
<T extends RepositoryConfigurationSource> Collection<RepositoryConfiguration<T>> getRepositoryConfigurations(T configSource, ResourceLoader loader, boolean strictMatchesOnly) Returns allRepositoryConfiguration
s obtained through the givenRepositoryConfigurationSource
.- Parameters:
configSource
-loader
-strictMatchesOnly
- whether to return strict repository matches only. Handing in true will cause the repository interfaces and domain types handled to be checked whether they are managed by the current store.- Returns:
- Since:
- 1.9
-
getDefaultNamedQueryLocation
String getDefaultNamedQueryLocation()Returns the default location of the Spring Data named queries.- Returns:
- must not be null or empty.
-
getRepositoryFactoryBeanClassName
String getRepositoryFactoryBeanClassName()Returns the name of the repository factory class to be used.- Returns:
-
registerBeansForRoot
void registerBeansForRoot(BeanDefinitionRegistry registry, RepositoryConfigurationSource configurationSource) Callback to register additional bean definitions for a repositories root node. This usually includes beans you have to set up once independently of the number of repositories to be created. Will be called before any repositories bean definitions have been registered.- Parameters:
registry
-configurationSource
-
-
postProcess
Callback to post process theBeanDefinition
and tweak the configuration if necessary.- Parameters:
builder
- will never be null.config
- will never be null.
-
postProcess
Callback to post process theBeanDefinition
built from annotations and tweak the configuration if necessary.- Parameters:
builder
- will never be null.config
- will never be null.
-
postProcess
Callback to post process theBeanDefinition
built from XML and tweak the configuration if necessary.- Parameters:
builder
- will never be null.config
- will never be null.
-