public class CustomRepositoryImplementationDetector extends Object
Repository| Constructor and Description |
|---|
CustomRepositoryImplementationDetector() |
| Modifier and Type | Method and Description |
|---|---|
Optional<org.springframework.beans.factory.support.AbstractBeanDefinition> |
detectCustomImplementation(RepositoryConfiguration<?> configuration)
Tries to detect a custom implementation for a repository bean by classpath scanning.
|
Optional<org.springframework.beans.factory.support.AbstractBeanDefinition> |
detectCustomImplementation(String className,
String beanName,
Iterable<String> basePackages,
Iterable<org.springframework.core.type.filter.TypeFilter> excludeFilters,
Function<org.springframework.beans.factory.config.BeanDefinition,String> beanNameGenerator)
Tries to detect a custom implementation for a repository bean by classpath scanning.
|
public CustomRepositoryImplementationDetector()
public Optional<org.springframework.beans.factory.support.AbstractBeanDefinition> detectCustomImplementation(RepositoryConfiguration<?> configuration)
configuration - the RepositoryConfiguration to consider.AbstractBeanDefinition of the custom implementation or null if none found.public Optional<org.springframework.beans.factory.support.AbstractBeanDefinition> detectCustomImplementation(String className, @Nullable String beanName, Iterable<String> basePackages, Iterable<org.springframework.core.type.filter.TypeFilter> excludeFilters, Function<org.springframework.beans.factory.config.BeanDefinition,String> beanNameGenerator)
className - must not be null.beanName - may be nullbasePackages - must not be null.excludeFilters - must not be null.beanNameGenerator - must not be null.AbstractBeanDefinition of the custom implementation or null if none found.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.