org.springframework.context.config
Class AbstractPropertyLoadingBeanDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
          extended by org.springframework.context.config.AbstractPropertyLoadingBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
PropertyOverrideBeanDefinitionParser, PropertyPlaceholderBeanDefinitionParser

abstract class AbstractPropertyLoadingBeanDefinitionParser
extends AbstractSingleBeanDefinitionParser

Abstract parser for <context:property-.../> elements.

Since:
2.5.2
Author:
Juergen Hoeller, Arjen Poutsma, Dave Syer

Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
 
Constructor Summary
AbstractPropertyLoadingBeanDefinitionParser()
           
 
Method Summary
protected  void doParse(org.w3c.dom.Element element, BeanDefinitionBuilder builder)
          Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.
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.AbstractSingleBeanDefinitionParser
doParse, getBeanClass, getBeanClassName, getParentName, parseInternal
 
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

AbstractPropertyLoadingBeanDefinitionParser

AbstractPropertyLoadingBeanDefinitionParser()
Method Detail

shouldGenerateId

protected boolean shouldGenerateId()
Description copied from class: AbstractBeanDefinitionParser
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.

Overrides:
shouldGenerateId in class AbstractBeanDefinitionParser
Returns:
whether the parser should always generate an id

doParse

protected void doParse(org.w3c.dom.Element element,
                       BeanDefinitionBuilder builder)
Description copied from class: AbstractSingleBeanDefinitionParser
Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.

The default implementation does nothing.

Overrides:
doParse in class AbstractSingleBeanDefinitionParser
Parameters:
element - the XML element being parsed
builder - used to define the BeanDefinition