Interface RepositoryConfiguration<T extends RepositoryConfigurationSource>
- All Known Implementing Classes:
DefaultRepositoryConfiguration
public interface RepositoryConfiguration<T extends RepositoryConfigurationSource>
Configuration information for a single repository instance.
- Author:
- Oliver Gierke, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionReturns the base packages that the repository was scanned under.Returns theRepositoryConfigurationSource
that backs theRepositoryConfiguration
.Returns theTypeFilter
s to be used to exclude packages from repository scanning.Returns the base packages to scan for repository implementations.Returns the custom implementation bean name to be used.Returns the location of the file containing Spring Data named queries.Returns the key to resolve aQueryLookupStrategy
from eventually.Returns the name of the repository base class to be used or null if the store specific defaults shall be applied.Returns the bean name of the repository to be used.Returns the name of the repository factory bean class to be used.Returns the interface name of the repository.Returns a human readable description of the repository interface declaration for error reporting purposes.Returns the source of theRepositoryConfiguration
.boolean
Returns whether to initialize the repository proxy lazily.boolean
Returns whether the repository is the primary one for its type.Returns theImplementationDetectionConfiguration
to be used for this repository.Returns theImplementationLookupConfiguration
for the givenMetadataReaderFactory
.
-
Method Details
-
getBasePackages
Streamable<String> getBasePackages()Returns the base packages that the repository was scanned under.- Returns:
-
getImplementationBasePackages
Streamable<String> getImplementationBasePackages()Returns the base packages to scan for repository implementations.- Returns:
- Since:
- 2.0
-
getRepositoryInterface
String getRepositoryInterface()Returns the interface name of the repository.- Returns:
-
getQueryLookupStrategyKey
Object getQueryLookupStrategyKey()Returns the key to resolve aQueryLookupStrategy
from eventually.- Returns:
- See Also:
-
getNamedQueriesLocation
Returns the location of the file containing Spring Data named queries.- Returns:
-
getRepositoryBaseClassName
Returns the name of the repository base class to be used or null if the store specific defaults shall be applied.- Returns:
- Since:
- 1.11
-
getRepositoryFactoryBeanClassName
String getRepositoryFactoryBeanClassName()Returns the name of the repository factory bean class to be used.- Returns:
-
getImplementationBeanName
String getImplementationBeanName()Returns the custom implementation bean name to be used.- Returns:
- Since:
- 3.0
-
getRepositoryBeanName
String getRepositoryBeanName()Returns the bean name of the repository to be used.- Returns:
- Since:
- 3.0
-
getSource
Returns the source of theRepositoryConfiguration
.- Returns:
-
getConfigurationSource
T getConfigurationSource()Returns theRepositoryConfigurationSource
that backs theRepositoryConfiguration
.- Returns:
-
isLazyInit
boolean isLazyInit()Returns whether to initialize the repository proxy lazily.- Returns:
-
isPrimary
boolean isPrimary()Returns whether the repository is the primary one for its type.- Returns:
- true whether the repository is the primary one for its type.
- Since:
- 2.3
-
getExcludeFilters
Streamable<TypeFilter> getExcludeFilters()Returns theTypeFilter
s to be used to exclude packages from repository scanning.- Returns:
-
toImplementationDetectionConfiguration
ImplementationDetectionConfiguration toImplementationDetectionConfiguration(MetadataReaderFactory factory) Returns theImplementationDetectionConfiguration
to be used for this repository.- Parameters:
factory
- must not be null.- Returns:
- will never be null.
- Since:
- 2.1
-
toLookupConfiguration
Returns theImplementationLookupConfiguration
for the givenMetadataReaderFactory
.- Parameters:
factory
- must not be null.- Returns:
- will never be null.
- Since:
- 2.1
-
getResourceDescription
Returns a human readable description of the repository interface declaration for error reporting purposes.- Returns:
- can be null.
- Since:
- 2.3
-