Class RepositoryBeanDefinitionParser
java.lang.Object
org.springframework.data.repository.config.RepositoryBeanDefinitionParser
- All Implemented Interfaces:
BeanDefinitionParser
Base class to implement repository namespaces. These will typically consist of a main XML element potentially having
child elements. The parser will wrap the XML element into a
XmlRepositoryConfigurationSource
object and allow
either manual configuration or automatic detection of repository interfaces.- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorDescriptionCreates a newRepositoryBeanDefinitionParser
using the givenRepositoryConfigurationExtension
. -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
hasBean
(Class<?> type, BeanDefinitionRegistry registry) Returns whether the givenBeanDefinitionRegistry
already contains a bean of the given type assuming the bean name has been autogenerated.parse
(Element element, ParserContext parser)
-
Constructor Details
-
RepositoryBeanDefinitionParser
Creates a newRepositoryBeanDefinitionParser
using the givenRepositoryConfigurationExtension
.- Parameters:
extension
- must not be null.
-
-
Method Details
-
parse
- Specified by:
parse
in interfaceBeanDefinitionParser
-
hasBean
Returns whether the givenBeanDefinitionRegistry
already contains a bean of the given type assuming the bean name has been autogenerated.- Parameters:
type
-registry
-- Returns:
-