Class KeyValueRepositoryConfigurationExtension
java.lang.Object
org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
org.springframework.data.keyvalue.repository.config.KeyValueRepositoryConfigurationExtension
- All Implemented Interfaces:
org.springframework.data.repository.config.RepositoryConfigurationExtension
- Direct Known Subclasses:
MapRepositoryConfigurationExtension
public abstract class KeyValueRepositoryConfigurationExtension
extends org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
RepositoryConfigurationExtension for KeyValueRepository.- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.factory.support.AbstractBeanDefinitiongetDefaultKeyValueTemplateBeanDefinition(org.springframework.data.repository.config.RepositoryConfigurationSource configurationSource) Get the defaultRootBeanDefinitionforKeyValueTemplate.protected abstract StringReturns theKeyValueTemplatebean name to potentially register a defaultKeyValueTemplatebean if no bean is registered with the returned name.protected Collection<Class<?>>protected StringReturns theMappingContextbean name to potentially register a default mapping context bean if no bean is registered with the returned name.protected StringvoidpostProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource config) voidregisterBeansForRoot(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, org.springframework.data.repository.config.RepositoryConfigurationSource configurationSource) Methods inherited from class org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
getConfigurationInspectionClassLoader, getDefaultNamedQueryLocation, getIdentifyingAnnotations, getRepositoryConfiguration, getRepositoryConfigurations, getRepositoryConfigurations, hasBean, isStrictRepositoryCandidate, postProcess, postProcess, registerIfNotAlreadyRegistered, registerLazyIfNotAlreadyRegistered, registerWithSourceAndGeneratedBeanName, useRepositoryConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.config.RepositoryConfigurationExtension
getModuleIdentifier, getRepositoryAotProcessor
-
Field Details
-
MAPPING_CONTEXT_BEAN_NAME
- See Also:
-
KEY_VALUE_TEMPLATE_BEAN_REF_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
KeyValueRepositoryConfigurationExtension
public KeyValueRepositoryConfigurationExtension()
-
-
Method Details
-
getRepositoryFactoryBeanClassName
-
getModuleName
- Specified by:
getModuleNamein interfaceorg.springframework.data.repository.config.RepositoryConfigurationExtension- Overrides:
getModuleNamein classorg.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-
getModulePrefix
- Specified by:
getModulePrefixin classorg.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-
getIdentifyingTypes
- Overrides:
getIdentifyingTypesin classorg.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-
postProcess
public void postProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource config) - Specified by:
postProcessin interfaceorg.springframework.data.repository.config.RepositoryConfigurationExtension- Overrides:
postProcessin classorg.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-
registerBeansForRoot
public void registerBeansForRoot(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, org.springframework.data.repository.config.RepositoryConfigurationSource configurationSource) - Specified by:
registerBeansForRootin interfaceorg.springframework.data.repository.config.RepositoryConfigurationExtension- Overrides:
registerBeansForRootin classorg.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-
getDefaultKeyValueTemplateBeanDefinition
@Nullable protected org.springframework.beans.factory.support.AbstractBeanDefinition getDefaultKeyValueTemplateBeanDefinition(org.springframework.data.repository.config.RepositoryConfigurationSource configurationSource) Get the defaultRootBeanDefinitionforKeyValueTemplate.- Returns:
- null to explicitly not register a template.
- See Also:
-
getDefaultKeyValueTemplateRef
Returns theKeyValueTemplatebean name to potentially register a defaultKeyValueTemplatebean if no bean is registered with the returned name.- Returns:
- the default
KeyValueTemplatebean name. Never null. - See Also:
-
getMappingContextBeanRef
Returns theMappingContextbean name to potentially register a default mapping context bean if no bean is registered with the returned name. Defaults toMAPPING_CONTEXT_BEAN_NAME.- Returns:
- the
MappingContextbean name. Never null. - Since:
- 2.0
-