org.springmodules.validation.bean.conf.namespace
Class XmlBasedValidatorBeanDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springmodules.validation.bean.conf.namespace.XmlBasedValidatorBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser, ValidationBeansParserConstants

public class XmlBasedValidatorBeanDefinitionParser
extends AbstractBeanDefinitionParser
implements ValidationBeansParserConstants

Author:
Uri Boness

Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Fields inherited from interface org.springmodules.validation.bean.conf.namespace.ValidationBeansParserConstants
VALIDATION_BEANS_NAMESPACE
 
Constructor Summary
XmlBasedValidatorBeanDefinitionParser()
           
 
Method Summary
protected  Resource createResource(Element resourceDefinition)
           
protected  List createResources(Element resourcesDefinition)
           
protected  Class getBeanClass(Element element)
          Returns the BeanValidator class.
protected  Object loadAndInstantiate(String className)
          Loads and instantiates the given class.
protected  void parseHandlerElements(Element element, BeanDefinitionBuilder registryBuilder)
           
protected  AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext)
           
protected  void parseResourcesElements(Element element, BeanDefinitionBuilder loaderBuilder)
           
 
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

XmlBasedValidatorBeanDefinitionParser

public XmlBasedValidatorBeanDefinitionParser()
Method Detail

parseInternal

protected AbstractBeanDefinition parseInternal(Element element,
                                               ParserContext parserContext)
Specified by:
parseInternal in class AbstractBeanDefinitionParser

getBeanClass

protected Class getBeanClass(Element element)
Returns the BeanValidator class.

See Also:
AbstractSingleBeanDefinitionParser.doParse(org.w3c.dom.Element, org.springframework.beans.factory.support.BeanDefinitionBuilder)

parseResourcesElements

protected void parseResourcesElements(Element element,
                                      BeanDefinitionBuilder loaderBuilder)

createResource

protected Resource createResource(Element resourceDefinition)

createResources

protected List createResources(Element resourcesDefinition)

parseHandlerElements

protected void parseHandlerElements(Element element,
                                    BeanDefinitionBuilder registryBuilder)

loadAndInstantiate

protected Object loadAndInstantiate(String className)
Loads and instantiates the given class.

Parameters:
className - The name of the given class.


Copyright © 2009. All Rights Reserved.