Class RepositoryBeanDefinitionParser
java.lang.Object
org.springframework.data.repository.config.RepositoryBeanDefinitionParser
- All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
public class RepositoryBeanDefinitionParser
extends Object
implements org.springframework.beans.factory.xml.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
ConstructorsConstructorDescriptionCreates a newRepositoryBeanDefinitionParserusing the givenRepositoryConfigurationExtension. -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanReturns whether the givenBeanDefinitionRegistryalready contains a bean of the given type assuming the bean name has been autogenerated.org.springframework.beans.factory.config.BeanDefinition
-
Constructor Details
-
RepositoryBeanDefinitionParser
Creates a newRepositoryBeanDefinitionParserusing the givenRepositoryConfigurationExtension.- Parameters:
extension- must not be null.
-
-
Method Details
-
parse
@Nullable public org.springframework.beans.factory.config.BeanDefinition parse(Element element, org.springframework.beans.factory.xml.ParserContext parser) - Specified by:
parsein interfaceorg.springframework.beans.factory.xml.BeanDefinitionParser
-
hasBean
protected static boolean hasBean(Class<?> type, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Returns whether the givenBeanDefinitionRegistryalready contains a bean of the given type assuming the bean name has been autogenerated.- Parameters:
type-registry-- Returns:
-