public class

InitializeDatabaseBeanDefinitionParser

extends AbstractBeanDefinitionParser
java.lang.Object
   ↳ org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
     ↳ org.springframework.jdbc.config.InitializeDatabaseBeanDefinitionParser

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
Public Constructors
InitializeDatabaseBeanDefinitionParser()
Protected Methods
AbstractBeanDefinition parseInternal(Element element, ParserContext context)
Central template method to actually parse the supplied Element into one or more BeanDefinitions.
boolean 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.

[Expand]
Inherited Methods
From class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
From class java.lang.Object
From interface org.springframework.beans.factory.xml.BeanDefinitionParser

Public Constructors

public InitializeDatabaseBeanDefinitionParser ()

Protected Methods

protected AbstractBeanDefinition parseInternal (Element element, ParserContext context)

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

Parameters
element the element that is to be parsed into one or more BeanDefinitions
context the object encapsulating the current state of the parsing process; provides access to a BeanDefinitionRegistry
Returns

protected boolean 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
  • whether the parser should always generate an id