Spring Data Commons

org.springframework.data.repository.config
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:
RepositoryConfigurationExtensionSupport

Method Summary
 String getDefaultNamedQueryLocation()
          Returns the default location of the Spring Data named queries.
<T extends RepositoryConfigurationSource>
Collection<RepositoryConfiguration<T>>
getRepositoryConfigurations(T configSource, ResourceLoader loader)
          Returns all RepositoryConfigurations obtained through the given RepositoryConfigurationSource.
 String getRepositoryFactoryClassName()
          Returns the name of the repository factory class to be used.
 void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config)
          Callback to post process the BeanDefinition built from annotations and tweak the configuration if necessary.
 void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config)
          Callback to post process the BeanDefinition 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 Detail

getRepositoryConfigurations

<T extends RepositoryConfigurationSource> Collection<RepositoryConfiguration<T>> getRepositoryConfigurations(T configSource,
                                                                                                             ResourceLoader loader)
Returns all RepositoryConfigurations obtained through the given RepositoryConfigurationSource.

Parameters:
configSource - must not be null.
loader - must not be null.
Returns:

getDefaultNamedQueryLocation

String getDefaultNamedQueryLocation()
Returns the default location of the Spring Data named queries.

Returns:
must not be null or empty.

getRepositoryFactoryClassName

String getRepositoryFactoryClassName()
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 -
source -

postProcess

void postProcess(BeanDefinitionBuilder builder,
                 AnnotationRepositoryConfigurationSource config)
Callback to post process the BeanDefinition built from annotations and tweak the configuration if necessary.

Parameters:
builder - will never be null.
config - will never be null.

postProcess

void postProcess(BeanDefinitionBuilder builder,
                 XmlRepositoryConfigurationSource config)
Callback to post process the BeanDefinition built from XML and tweak the configuration if necessary.

Parameters:
builder - will never be null.
config - will never be null.

Spring Data Commons

Copyright © 2012. All Rights Reserved.