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(org.springframework.core.env.Environment environment,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Creates a new
RepositoryConfigurationSourceSupport with the given environment. |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.springframework.beans.factory.config.BeanDefinition> |
getCandidates(org.springframework.core.io.ResourceLoader loader)
Returns the source
BeanDefinitions of the repository interfaces to create repository instances for. |
Iterable<org.springframework.core.type.filter.TypeFilter> |
getExcludeFilters()
Return the
TypeFilters to define which types to exclude when scanning for repositories. |
protected Iterable<org.springframework.core.type.filter.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getBasePackages, getNamedQueryLocation, getQueryLookupStrategyKey, getRepositoryBaseClassName, getRepositoryFactoryBeanName, getRepositoryImplementationPostfix, getSource, usesExplicitFiltersprotected static final String DEFAULT_REPOSITORY_IMPL_POSTFIX
public RepositoryConfigurationSourceSupport(org.springframework.core.env.Environment environment,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
RepositoryConfigurationSourceSupport with the given environment.environment - must not be null.public Collection<org.springframework.beans.factory.config.BeanDefinition> getCandidates(org.springframework.core.io.ResourceLoader loader)
RepositoryConfigurationSourceBeanDefinitions of the repository interfaces to create repository instances for.getCandidates in interface RepositoryConfigurationSourcepublic Iterable<org.springframework.core.type.filter.TypeFilter> getExcludeFilters()
TypeFilters to define which types to exclude when scanning for repositories. Default
implementation returns an empty collection.getExcludeFilters in interface RepositoryConfigurationSourceprotected Iterable<org.springframework.core.type.filter.TypeFilter> getIncludeFilters()
TypeFilters to define which types to include when scanning for repositories. Default
implementation returns an empty collection.public boolean shouldConsiderNestedRepositories()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.