class InitializeDatabaseBeanDefinitionParser extends AbstractBeanDefinitionParser
BeanDefinitionParser
that parses an initialize-database
element and creates a BeanDefinition
of type DataSourceInitializer
. Picks up nested
script
elements and configures a ResourceDatabasePopulator
for them.ID_ATTRIBUTE, NAME_ATTRIBUTE
Constructor and Description |
---|
InitializeDatabaseBeanDefinitionParser() |
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 . |
protected boolean |
shouldGenerateId()
Should an ID be generated instead of read from the passed in
Element ? |
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateIdAsFallback
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)
protected boolean shouldGenerateId()
AbstractBeanDefinitionParser
Element
?
Disabled by default; subclasses can override this to enable ID generation. Note that this flag is about always generating an ID; the parser won't even check for an "id" attribute in this case.
shouldGenerateId
in class AbstractBeanDefinitionParser