class EmbeddedDatabaseBeanDefinitionParser extends AbstractBeanDefinitionParser
BeanDefinitionParser
that parses an embedded-database
element and creates a BeanDefinition
for EmbeddedDatabaseFactoryBean
. Picks up nested
script
elements and configures a ResourceDatabasePopulator
for them.ID_ATTRIBUTE, NAME_ATTRIBUTE
Constructor and Description |
---|
EmbeddedDatabaseBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
protected AbstractBeanDefinition |
parseInternal(org.w3c.dom.Element element,
ParserContext parserContext)
Central template method to actually parse the supplied
Element
into one or more BeanDefinitions . |
private void |
setDatabaseType(org.w3c.dom.Element element,
BeanDefinitionBuilder builder) |
private void |
useIdAsDatabaseNameIfGiven(org.w3c.dom.Element element,
BeanDefinitionBuilder builder) |
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
protected AbstractBeanDefinition parseInternal(org.w3c.dom.Element element, ParserContext parserContext)
AbstractBeanDefinitionParser
Element
into one or more BeanDefinitions
.parseInternal
in class AbstractBeanDefinitionParser
element
- the element that is to be parsed into one or more BeanDefinitions
parserContext
- the object encapsulating the current state of the parsing process;
provides access to a BeanDefinitionRegistry
BeanDefinition
resulting from the parsing of the supplied Element
AbstractBeanDefinitionParser.parse(org.w3c.dom.Element, ParserContext)
,
AbstractBeanDefinitionParser.postProcessComponentDefinition(org.springframework.beans.factory.parsing.BeanComponentDefinition)
private void useIdAsDatabaseNameIfGiven(org.w3c.dom.Element element, BeanDefinitionBuilder builder)
private void setDatabaseType(org.w3c.dom.Element element, BeanDefinitionBuilder builder)