Class JpaRepositoryConfigExtension
java.lang.Object
org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension
- All Implemented Interfaces:
RepositoryConfigurationExtension
JPA specific configuration extension parsing custom attributes from the XML namespace and
EnableJpaRepositories
annotation. Also, it registers bean definitions for a
PersistenceAnnotationBeanPostProcessor
(to trigger injection into PersistenceContext
/
PersistenceUnit
annotated properties and methods) as well as
PersistenceExceptionTranslationPostProcessor
to enable exception translation of persistence specific
exceptions into Spring's DataAccessException
hierarchy.- Author:
- Oliver Gierke, Eberhard Wolff, Gil Markham, Thomas Darimont, Christoph Strobl, Mark Paluch
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ARepositoryRegistrationAotProcessor
implementation that maintains aot repository setup but skips domain type inspection which is handled by the core framework support forPersistenceManagedTypes
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClassLoader
protected Collection<Class<? extends Annotation>>
protected Collection<Class<?>>
protected String
Class<? extends BeanRegistrationAotProcessor>
void
postProcess
(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) void
postProcess
(BeanDefinitionBuilder builder, RepositoryConfigurationSource source) void
postProcess
(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) void
registerBeansForRoot
(BeanDefinitionRegistry registry, RepositoryConfigurationSource config) Methods inherited from class org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
getDefaultNamedQueryLocation, getRepositoryConfiguration, getRepositoryConfigurations, getRepositoryConfigurations, hasBean, isStrictRepositoryCandidate, registerIfNotAlreadyRegistered, registerLazyIfNotAlreadyRegistered, registerWithSourceAndGeneratedBeanName, useRepositoryConfiguration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.config.RepositoryConfigurationExtension
getModuleIdentifier
-
Constructor Details
-
JpaRepositoryConfigExtension
public JpaRepositoryConfigExtension()
-
-
Method Details
-
getModuleName
- Specified by:
getModuleName
in interfaceRepositoryConfigurationExtension
- Overrides:
getModuleName
in classRepositoryConfigurationExtensionSupport
-
getRepositoryFactoryBeanClassName
-
getModulePrefix
- Specified by:
getModulePrefix
in classRepositoryConfigurationExtensionSupport
-
getIdentifyingAnnotations
- Overrides:
getIdentifyingAnnotations
in classRepositoryConfigurationExtensionSupport
-
getIdentifyingTypes
- Overrides:
getIdentifyingTypes
in classRepositoryConfigurationExtensionSupport
-
postProcess
- Specified by:
postProcess
in interfaceRepositoryConfigurationExtension
- Overrides:
postProcess
in classRepositoryConfigurationExtensionSupport
-
getRepositoryAotProcessor
-
postProcess
public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) - Specified by:
postProcess
in interfaceRepositoryConfigurationExtension
- Overrides:
postProcess
in classRepositoryConfigurationExtensionSupport
-
postProcess
- Specified by:
postProcess
in interfaceRepositoryConfigurationExtension
- Overrides:
postProcess
in classRepositoryConfigurationExtensionSupport
-
registerBeansForRoot
public void registerBeansForRoot(BeanDefinitionRegistry registry, RepositoryConfigurationSource config) - Specified by:
registerBeansForRoot
in interfaceRepositoryConfigurationExtension
- Overrides:
registerBeansForRoot
in classRepositoryConfigurationExtensionSupport
-
getConfigurationInspectionClassLoader
- Overrides:
getConfigurationInspectionClassLoader
in classRepositoryConfigurationExtensionSupport
-