public abstract class RepositoryConfigurationSourceSupport extends Object implements RepositoryConfigurationSource
RepositoryConfigurationSources.| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_REPOSITORY_IMPL_POSTFIX |
| Constructor and Description |
|---|
RepositoryConfigurationSourceSupport(Environment environment,
ClassLoader classLoader,
BeanDefinitionRegistry registry,
BeanNameGenerator generator)
Creates a new
RepositoryConfigurationSourceSupport with the given environment. |
| Modifier and Type | Method and Description |
|---|---|
String |
generateBeanName(BeanDefinition beanDefinition)
Returns a name for the beanDefinition.
|
Streamable<BeanDefinition> |
getCandidates(ResourceLoader loader)
Returns the source
BeanDefinitions of the repository interfaces to create repository instances for. |
Streamable<TypeFilter> |
getExcludeFilters()
Return the
TypeFilters to define which types to exclude when scanning for repositories. |
protected Iterable<TypeFilter> |
getIncludeFilters()
Return the
TypeFilters to define which types to include when scanning for repositories. |
boolean |
shouldConsiderNestedRepositories()
Returns whether we should consider nested repositories, i.e. repository interface definitions nested in other
classes.
|
ImplementationDetectionConfiguration |
toImplementationDetectionConfiguration(MetadataReaderFactory factory)
Returns the
ImplementationDetectionConfiguration to be used to scan for custom implementations of the
repository instances to be created from this RepositoryConfigurationSource. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttribute, getBasePackages, getBootstrapMode, getNamedQueryLocation, getQueryLookupStrategyKey, getRepositoryBaseClassName, getRepositoryFactoryBeanClassName, getRepositoryImplementationPostfix, getRequiredAttribute, getResourceDescription, getSource, usesExplicitFiltersprotected static final String DEFAULT_REPOSITORY_IMPL_POSTFIX
public RepositoryConfigurationSourceSupport(Environment environment, ClassLoader classLoader, BeanDefinitionRegistry registry, BeanNameGenerator generator)
RepositoryConfigurationSourceSupport with the given environment.environment - must not be null.classLoader - must not be null.registry - must not be null.public Streamable<BeanDefinition> getCandidates(ResourceLoader loader)
RepositoryConfigurationSourceBeanDefinitions of the repository interfaces to create repository instances for.getCandidates in interface RepositoryConfigurationSourcepublic Streamable<TypeFilter> getExcludeFilters()
TypeFilters to define which types to exclude when scanning for repositories. Default
implementation returns an empty collection.getExcludeFilters in interface RepositoryConfigurationSourcepublic String generateBeanName(BeanDefinition beanDefinition)
RepositoryConfigurationSourcegenerateBeanName in interface RepositoryConfigurationSourcebeanDefinition - must not be null.protected Iterable<TypeFilter> getIncludeFilters()
TypeFilters to define which types to include when scanning for repositories. Default
implementation returns an empty collection.public boolean shouldConsiderNestedRepositories()
public ImplementationDetectionConfiguration toImplementationDetectionConfiguration(MetadataReaderFactory factory)
RepositoryConfigurationSourceImplementationDetectionConfiguration to be used to scan for custom implementations of the
repository instances to be created from this RepositoryConfigurationSource.toImplementationDetectionConfiguration in interface RepositoryConfigurationSourceCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.