Top Description Fields Constructors Methods
org.springframework.jdbc.config

pack-priv Class InitializeDatabaseBeanDefinitionParser

extends AbstractBeanDefinitionParser
Class Inheritance
Imports
org.w3c.dom.Element, org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.support.AbstractBeanDefinition, .BeanDefinitionBuilder, org.springframework.beans.factory.xml.AbstractBeanDefinitionParser, .ParserContext, org.springframework.jdbc.datasource.init.DataSourceInitializer, .ResourceDatabasePopulator

org.springframework.beans.factory.xml.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.
Authors
Dave Syer, Juergen Hoeller
Since
3.0

Field Summary

Inherited from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser:
ID_ATTRIBUTENAME_ATTRIBUTE

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected AbstractBeanDefinition
parseInternal(Element
the element that is to be parsed into one or more BeanDefinitions
element
,
ParserContext
the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry
parserContext
)

Implements abstract org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parseInternal.

Central template method to actually parse the supplied Element into one or more BeanDefinitions.
protected boolean
shouldGenerateId()

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.shouldGenerateId.

Should an ID be generated instead of read from the passed in Element?
Inherited from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser:
parsepostProcessComponentDefinitionregisterBeanDefinitionresolveIdshouldFireEventsshouldGenerateIdAsFallbackshouldParseNameAsAliases

Constructor Detail

InitializeDatabaseBeanDefinitionParserback to summary
pack-priv InitializeDatabaseBeanDefinitionParser()

Method Detail

parseInternalback to summary
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext)

Implements abstract org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parseInternal.

Doc from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parseInternal.

Central template method to actually parse the supplied Element into one or more BeanDefinitions.

Parameters
element:Element

the element that is to be parsed into one or more BeanDefinitions

parserContext:ParserContext

the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry

Returns:AbstractBeanDefinition

the primary BeanDefinition resulting from the parsing of the supplied Element

Annotations
@Override
shouldGenerateIdback to summary
protected boolean shouldGenerateId()

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.shouldGenerateId.

Doc from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.shouldGenerateId.

Should an ID be generated instead of read from the passed in 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.

Returns:boolean

whether the parser should always generate an id

Annotations
@Override