public class AnnotationRepositoryConfigurationSource extends RepositoryConfigurationSourceSupport
RepositoryConfigurationSource.DEFAULT_REPOSITORY_IMPL_POSTFIX| Constructor and Description |
|---|
AnnotationRepositoryConfigurationSource(org.springframework.core.type.AnnotationMetadata metadata,
Class<? extends Annotation> annotation,
org.springframework.core.io.ResourceLoader resourceLoader,
org.springframework.core.env.Environment environment)
Creates a new
AnnotationRepositoryConfigurationSource from the given AnnotationMetadata and
annotation. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String name)
Returns the value for the
String attribute with the given name. |
org.springframework.core.annotation.AnnotationAttributes |
getAttributes()
Returns the
AnnotationAttributes of the annotation configured. |
Iterable<String> |
getBasePackages()
Returns the base packages the repository interfaces shall be found under.
|
protected 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. |
String |
getNamedQueryLocation() |
Object |
getQueryLookupStrategyKey()
Returns the
QueryLookupStrategy.Key to define how query methods shall be resolved. |
String |
getRepositoryFactoryBeanName()
Returns the name of the class of the
FactoryBean to actually create repository instances. |
String |
getRepositoryImplementationPostfix()
Returns the configured postfix to be used for looking up custom implementation classes.
|
Object |
getSource()
Returns the actual source object that the configuration originated from.
|
boolean |
shouldConsiderNestedRepositories()
Returns whether we should consider nested repositories, i.e.
|
getCandidatespublic AnnotationRepositoryConfigurationSource(org.springframework.core.type.AnnotationMetadata metadata,
Class<? extends Annotation> annotation,
org.springframework.core.io.ResourceLoader resourceLoader,
org.springframework.core.env.Environment environment)
AnnotationRepositoryConfigurationSource from the given AnnotationMetadata and
annotation.metadata - must not be null.annotation - must not be null.resourceLoader - must not be null.environment - public Iterable<String> getBasePackages()
RepositoryConfigurationSourcepublic Object getQueryLookupStrategyKey()
RepositoryConfigurationSourceQueryLookupStrategy.Key to define how query methods shall be resolved.public String getNamedQueryLocation()
public String getRepositoryImplementationPostfix()
RepositoryConfigurationSourcepublic Object getSource()
RepositoryConfigurationSourceprotected Iterable<org.springframework.core.type.filter.TypeFilter> getIncludeFilters()
RepositoryConfigurationSourceSupportTypeFilters to define which types to include when scanning for repositories. Default
implementation returns an empty collection.getIncludeFilters in class RepositoryConfigurationSourceSupportprotected Iterable<org.springframework.core.type.filter.TypeFilter> getExcludeFilters()
RepositoryConfigurationSourceSupportTypeFilters to define which types to exclude when scanning for repositories. Default
implementation returns an empty collection.getExcludeFilters in class RepositoryConfigurationSourceSupportpublic String getRepositoryFactoryBeanName()
RepositoryConfigurationSourceFactoryBean to actually create repository instances.public org.springframework.core.annotation.AnnotationAttributes getAttributes()
AnnotationAttributes of the annotation configured.public boolean shouldConsiderNestedRepositories()
RepositoryConfigurationSourceSupportshouldConsiderNestedRepositories in class RepositoryConfigurationSourceSupportpublic String getAttribute(String name)
RepositoryConfigurationSourceString attribute with the given name. The name is expected to be handed in
camel-case.name - must not be null or empty.Copyright © 2018. All rights reserved.