Interface ImplementationDetectionConfiguration
- All Known Subinterfaces:
ImplementationLookupConfiguration
public interface ImplementationDetectionConfiguration
Expresses configuration to be used to detect implementation classes for repositories and repository fragments.
- Since:
- 2.1
- Author:
- Oliver Gierke, Johannes Englmeier
-
Method Summary
Modifier and TypeMethodDescriptionforFragment
(String fragmentInterfaceName) Returns the final lookup configuration for the given fully-qualified fragment interface name.Returns the final lookup configuration for the givenRepositoryConfiguration
.default String
generateBeanName
(BeanDefinition definition) Generate the bean name for the givenBeanDefinition
.Return the base packages to be scanned for implementation types.Returns the exclude filters to be used for the implementation class scanning.Returns the postfix to be used to calculate the implementation type's name.Returns theMetadataReaderFactory
to be used for implementation class scanning.
-
Method Details
-
getImplementationPostfix
String getImplementationPostfix()Returns the postfix to be used to calculate the implementation type's name.- Returns:
- must not be null.
-
getBasePackages
Streamable<String> getBasePackages()Return the base packages to be scanned for implementation types.- Returns:
- must not be null.
-
getExcludeFilters
Streamable<TypeFilter> getExcludeFilters()Returns the exclude filters to be used for the implementation class scanning.- Returns:
- must not be null.
-
getMetadataReaderFactory
MetadataReaderFactory getMetadataReaderFactory()Returns theMetadataReaderFactory
to be used for implementation class scanning.- Returns:
- must not be null.
-
generateBeanName
Generate the bean name for the givenBeanDefinition
.- Parameters:
definition
- must not be null.- Returns:
-
forFragment
Returns the final lookup configuration for the given fully-qualified fragment interface name.- Parameters:
fragmentInterfaceName
- must not be null or empty.- Returns:
-
forRepositoryConfiguration
default ImplementationLookupConfiguration forRepositoryConfiguration(RepositoryConfiguration<?> config) Returns the final lookup configuration for the givenRepositoryConfiguration
.- Parameters:
config
- must not be null.- Returns:
-