Spring Data Commons

org.springframework.data.repository.config
Interface RepositoryConfigurationSource

All Known Implementing Classes:
AnnotationRepositoryConfigurationSource, RepositoryConfigurationSourceSupport, XmlRepositoryConfigurationSource

public interface RepositoryConfigurationSource

Interface containing the configurable options for the Spring Data repository subsystem.

Author:
Oliver Gierke

Method Summary
 Iterable<String> getBasePackages()
          Returns the base packages the repository interfaces shall be found under.
 Collection<String> getCandidates(ResourceLoader loader)
          Returns the fully-qualified names of the repository interfaces to create repository instances for.
 String getNamedQueryLocation()
           
 Object getQueryLookupStrategyKey()
          Returns the QueryLookupStrategy.Key to define how query methods shall be resolved.
 String getRepositoryFactoryBeanName()
          Returns the name of the class of the FactoryBean to actually create repository instances.
 String getRepositoryImplementationPostfix()
          Returns the configured postfix to be used for looking up custom implementation classes.
 Object getSource()
          Returns the actual source object that the configuration originated from.
 

Method Detail

getSource

Object getSource()
Returns the actual source object that the configuration originated from. Will be used by the tooling to give visual feedback on where the repository instances actually come from.

Returns:
must not be null.

getBasePackages

Iterable<String> getBasePackages()
Returns the base packages the repository interfaces shall be found under.

Returns:
must not be null.

getQueryLookupStrategyKey

Object getQueryLookupStrategyKey()
Returns the QueryLookupStrategy.Key to define how query methods shall be resolved.

Returns:

getRepositoryImplementationPostfix

String getRepositoryImplementationPostfix()
Returns the configured postfix to be used for looking up custom implementation classes.

Returns:
the postfix to use or null in case none is configured.

getNamedQueryLocation

String getNamedQueryLocation()
Returns:

getRepositoryFactoryBeanName

String getRepositoryFactoryBeanName()
Returns the name of the class of the FactoryBean to actually create repository instances.

Returns:

getCandidates

Collection<String> getCandidates(ResourceLoader loader)
Returns the fully-qualified names of the repository interfaces to create repository instances for.

Parameters:
loader -
Returns:

Spring Data Commons

Copyright © 2012. All Rights Reserved.