public class DefaultRepositoryConfiguration<T extends RepositoryConfigurationSource> extends Object implements RepositoryConfiguration<T>
RepositoryConfiguration.| Modifier and Type | Field and Description |
|---|---|
static QueryLookupStrategy.Key |
DEFAULT_QUERY_LOOKUP_STRATEGY |
static String |
DEFAULT_REPOSITORY_IMPLEMENTATION_POSTFIX |
| Constructor and Description |
|---|
DefaultRepositoryConfiguration(T configurationSource,
BeanDefinition definition,
RepositoryConfigurationExtension extension) |
| Modifier and Type | Method and Description |
|---|---|
Streamable<String> |
getBasePackages()
Returns the base packages that the repository was scanned under.
|
String |
getBeanId() |
RepositoryConfigurationSource |
getConfigSource() |
T |
getConfigurationSource()
Returns the
RepositoryConfigurationSource that backs the RepositoryConfiguration. |
Streamable<TypeFilter> |
getExcludeFilters()
Returns the
TypeFilters to be used to exclude packages from repository scanning. |
Streamable<String> |
getImplementationBasePackages()
Returns the base packages to scan for repository implementations.
|
String |
getImplementationBeanName() |
String |
getImplementationClassName() |
Optional<String> |
getNamedQueriesLocation()
Returns the location of the file containing Spring Data named queries.
|
Object |
getQueryLookupStrategyKey()
Returns the key to resolve a
QueryLookupStrategy from eventually. |
Optional<String> |
getRepositoryBaseClassName()
Returns the name of the repository base class to be used or null if the store specific defaults shall be
applied.
|
String |
getRepositoryFactoryBeanClassName()
Returns the name of the repository factory bean class to be used.
|
String |
getRepositoryInterface()
Returns the interface name of the repository.
|
String |
getResourceDescription()
Returns a human readable description of the repository interface declaration for error reporting purposes.
|
Object |
getSource()
Returns the source of the
RepositoryConfiguration. |
boolean |
isLazyInit()
Returns whether to initialize the repository proxy lazily.
|
boolean |
isPrimary()
Returns whether the repository is the primary one for its type.
|
ImplementationDetectionConfiguration |
toImplementationDetectionConfiguration(MetadataReaderFactory factory)
Returns the
ImplementationDetectionConfiguration to be used for this repository. |
ImplementationLookupConfiguration |
toLookupConfiguration(MetadataReaderFactory factory)
Returns the
ImplementationLookupConfiguration for the given MetadataReaderFactory. |
public static final String DEFAULT_REPOSITORY_IMPLEMENTATION_POSTFIX
public static final QueryLookupStrategy.Key DEFAULT_QUERY_LOOKUP_STRATEGY
public DefaultRepositoryConfiguration(T configurationSource, BeanDefinition definition, RepositoryConfigurationExtension extension)
public String getBeanId()
public Object getQueryLookupStrategyKey()
RepositoryConfigurationQueryLookupStrategy from eventually.getQueryLookupStrategyKey in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>QueryLookupStrategy.Keypublic Streamable<String> getBasePackages()
RepositoryConfigurationgetBasePackages in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public Streamable<String> getImplementationBasePackages()
RepositoryConfigurationgetImplementationBasePackages in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public String getRepositoryInterface()
RepositoryConfigurationgetRepositoryInterface in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public RepositoryConfigurationSource getConfigSource()
public Optional<String> getNamedQueriesLocation()
RepositoryConfigurationgetNamedQueriesLocation in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public String getImplementationClassName()
public String getImplementationBeanName()
@Nullable public Object getSource()
RepositoryConfigurationRepositoryConfiguration.getSource in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public T getConfigurationSource()
RepositoryConfigurationRepositoryConfigurationSource that backs the RepositoryConfiguration.getConfigurationSource in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public Optional<String> getRepositoryBaseClassName()
RepositoryConfigurationgetRepositoryBaseClassName in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public String getRepositoryFactoryBeanClassName()
RepositoryConfigurationgetRepositoryFactoryBeanClassName in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public boolean isLazyInit()
RepositoryConfigurationisLazyInit in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public boolean isPrimary()
RepositoryConfigurationisPrimary in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public Streamable<TypeFilter> getExcludeFilters()
RepositoryConfigurationTypeFilters to be used to exclude packages from repository scanning.getExcludeFilters in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>public ImplementationDetectionConfiguration toImplementationDetectionConfiguration(MetadataReaderFactory factory)
RepositoryConfigurationImplementationDetectionConfiguration to be used for this repository.toImplementationDetectionConfiguration in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>factory - must not be null.public ImplementationLookupConfiguration toLookupConfiguration(MetadataReaderFactory factory)
RepositoryConfigurationImplementationLookupConfiguration for the given MetadataReaderFactory.toLookupConfiguration in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>factory - must not be null.@NonNull public String getResourceDescription()
RepositoryConfigurationgetResourceDescription in interface RepositoryConfiguration<T extends RepositoryConfigurationSource>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.