org.springframework.jdbc.config
Class EmbeddedDatabaseBeanDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by 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, Juergen Hoeller

Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
 
Constructor Summary
EmbeddedDatabaseBeanDefinitionParser()
           
 
Method Summary
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)
           
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedDatabaseBeanDefinitionParser

EmbeddedDatabaseBeanDefinitionParser()
Method Detail

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)