public abstract class RepositoryConfigurationSourceSupport extends Object implements RepositoryConfigurationSource
RepositoryConfigurationSource
s.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
BeanDefinition s of the repository interfaces to create repository instances for. |
Iterable<org.springframework.core.type.filter.TypeFilter> |
getExcludeFilters()
Return the
TypeFilter s to define which types to exclude when scanning for repositories. |
protected Iterable<org.springframework.core.type.filter.TypeFilter> |
getIncludeFilters()
Return the
TypeFilter s 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, wait
getAttribute, getBasePackages, getNamedQueryLocation, getQueryLookupStrategyKey, getRepositoryBaseClassName, getRepositoryFactoryBeanName, getRepositoryImplementationPostfix, getSource, usesExplicitFilters
protected 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)
RepositoryConfigurationSource
BeanDefinition
s of the repository interfaces to create repository instances for.getCandidates
in interface RepositoryConfigurationSource
public Iterable<org.springframework.core.type.filter.TypeFilter> getExcludeFilters()
TypeFilter
s to define which types to exclude when scanning for repositories. Default
implementation returns an empty collection.getExcludeFilters
in interface RepositoryConfigurationSource
protected Iterable<org.springframework.core.type.filter.TypeFilter> getIncludeFilters()
TypeFilter
s 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.