net.sf.snamespaces
Class SingleBeanDefinitionParserWithOptionalId

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
          extended by net.sf.snamespaces.SingleBeanDefinitionParserWithOptionalId
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
Direct Known Subclasses:
PropertyPlaceholderBeanDefinitionParser

public abstract class SingleBeanDefinitionParserWithOptionalId
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

Base class for those BeanDefinitionParser implementations that need to parse and define just a single BeanDefinition that have a optional id attribute.

Use this BeanDefinitionParser implementation when you want to parse some arbitrarily complex XML into one or more BeanDefinitions with optional id attribute.

Since:
1.0
Version:
1.00, 04/09/2007
Author:
Jonhnny Weslley

Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
SingleBeanDefinitionParserWithOptionalId()
           
 
Method Summary
protected  void doParse(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
           
protected  boolean shouldGenerateId()
           
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClass, parseInternal
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleBeanDefinitionParserWithOptionalId

public SingleBeanDefinitionParserWithOptionalId()
Method Detail

doParse

protected final void doParse(org.w3c.dom.Element element,
                             org.springframework.beans.factory.xml.ParserContext parserContext,
                             org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Overrides:
doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

shouldGenerateId

protected boolean shouldGenerateId()
Overrides:
shouldGenerateId in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser


Copyright © 2007. All Rights Reserved.