public class XmlRepositoryConfigurationSource extends RepositoryConfigurationSourceSupport
RepositoryConfigurationSource. Uses configuration defined on Element attributes.DEFAULT_REPOSITORY_IMPL_POSTFIX| Constructor and Description |
|---|
XmlRepositoryConfigurationSource(Element element,
ParserContext context,
Environment environment)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String name)
Returns the value for the
String attribute with the given name. |
Iterable<String> |
getBasePackages()
Returns the base packages the repository interfaces shall be found under.
|
Element |
getElement()
Returns the XML element backing the configuration.
|
Iterable<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. |
String |
getNamedQueryLocation() |
Object |
getQueryLookupStrategyKey()
Returns the
QueryLookupStrategy.Key to define how query methods shall be resolved. |
String |
getRepositoryBaseClassName()
Returns the name of the repository base class to be used or null if the store specific defaults shall be
applied.
|
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. repository interface definitions nested in other
classes.
|
boolean |
usesExplicitFilters()
Returns whether the configuration uses explicit filtering to scan for repository types.
|
getCandidatespublic XmlRepositoryConfigurationSource(Element element, ParserContext context, Environment environment)
element - must not be null.context - must not be null.environment - must not be null.public Object getSource()
RepositoryConfigurationSourcepublic Iterable<String> getBasePackages()
RepositoryConfigurationSourcepublic Object getQueryLookupStrategyKey()
RepositoryConfigurationSourceQueryLookupStrategy.Key to define how query methods shall be resolved.public String getNamedQueryLocation()
public Element getElement()
public Iterable<TypeFilter> getExcludeFilters()
RepositoryConfigurationSourceSupportTypeFilters to define which types to exclude when scanning for repositories. Default
implementation returns an empty collection.getExcludeFilters in interface RepositoryConfigurationSourcegetExcludeFilters in class RepositoryConfigurationSourceSupportprotected Iterable<TypeFilter> getIncludeFilters()
RepositoryConfigurationSourceSupportTypeFilters to define which types to include when scanning for repositories. Default
implementation returns an empty collection.getIncludeFilters in class RepositoryConfigurationSourceSupportpublic String getRepositoryImplementationPostfix()
RepositoryConfigurationSourcepublic String getRepositoryFactoryBeanName()
RepositoryConfigurationSourceFactoryBean to actually create repository instances.public String getRepositoryBaseClassName()
RepositoryConfigurationSourcepublic 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.public boolean usesExplicitFilters()
RepositoryConfigurationSourceCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.