|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.jdbc.config.InitializeDatabaseBeanDefinitionParser
class InitializeDatabaseBeanDefinitionParser
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.
Field Summary |
---|
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
---|
ID_ATTRIBUTE, NAME_ATTRIBUTE |
Constructor Summary | |
---|---|
InitializeDatabaseBeanDefinitionParser()
|
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 . |
protected boolean |
shouldGenerateId()
Should an ID be generated instead of read from the passed in Element ? |
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
---|
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateIdAsFallback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
InitializeDatabaseBeanDefinitionParser()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |