org.springframework.jdbc.config
Class EmbeddedDatabaseBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.jdbc.config.EmbeddedDatabaseBeanDefinitionParser
- All Implemented Interfaces:
- BeanDefinitionParser
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.
- Since:
- 3.0
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbeddedDatabaseBeanDefinitionParser
EmbeddedDatabaseBeanDefinitionParser()
parseInternal
protected AbstractBeanDefinition parseInternal(org.w3c.dom.Element element,
ParserContext parserContext)
- Description copied from class:
AbstractBeanDefinitionParser
- Central template method to actually parse the supplied
Element
into one or more BeanDefinitions
.
- Specified by:
parseInternal
in class AbstractBeanDefinitionParser
- Parameters:
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
- Returns:
- the primary
BeanDefinition
resulting from the parsing of the supplied Element
- See Also:
AbstractBeanDefinitionParser.parse(org.w3c.dom.Element, ParserContext)
,
AbstractBeanDefinitionParser.postProcessComponentDefinition(org.springframework.beans.factory.parsing.BeanComponentDefinition)
useIdAsDatabaseNameIfGiven
private void useIdAsDatabaseNameIfGiven(org.w3c.dom.Element element,
BeanDefinitionBuilder builder)
setDatabaseType
private void setDatabaseType(org.w3c.dom.Element element,
BeanDefinitionBuilder builder)
setDatabasePopulator
private void setDatabasePopulator(org.w3c.dom.Element element,
BeanDefinitionBuilder builder)
createDatabasePopulator
private BeanDefinition createDatabasePopulator(java.util.List<org.w3c.dom.Element> scripts)