org.directwebremoting.spring.namespace
Class ConfigurationParser

java.lang.Object
  extended by org.directwebremoting.spring.namespace.ConfigurationParser
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser

public final class ConfigurationParser
extends java.lang.Object
implements org.springframework.beans.factory.xml.BeanDefinitionParser

Parses a <dwr:configuration> tag and all its children.

Author:
Jose Noheda [jose.noheda@gmail.com]

Field Summary
static java.lang.String DEFAULT_SPRING_CONFIGURATOR_ID
          Provided bean name for the configuration tag.
 
Constructor Summary
ConfigurationParser(org.springframework.beans.factory.xml.NamespaceHandlerSupport handler)
          Configures the namespace handler for this context.
 
Method Summary
 org.springframework.beans.factory.config.BeanDefinition parse(org.w3c.dom.Element configurationElement, org.springframework.beans.factory.xml.ParserContext parserContext)
          Registers the configuration object and recursively processes children.
static org.springframework.beans.factory.config.BeanDefinition registerConfigurationIfNecessary(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
          Checks if a configuration object (usually from a <dwr:configuration> tag) has already been processed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SPRING_CONFIGURATOR_ID

public static final java.lang.String DEFAULT_SPRING_CONFIGURATOR_ID
Provided bean name for the configuration tag.

See Also:
Constant Field Values
Constructor Detail

ConfigurationParser

public ConfigurationParser(org.springframework.beans.factory.xml.NamespaceHandlerSupport handler)
Configures the namespace handler for this context.

Parameters:
handler - a non null instance
Method Detail

parse

public org.springframework.beans.factory.config.BeanDefinition parse(org.w3c.dom.Element configurationElement,
                                                                     org.springframework.beans.factory.xml.ParserContext parserContext)
Registers the configuration object and recursively processes children.

Specified by:
parse in interface org.springframework.beans.factory.xml.BeanDefinitionParser

registerConfigurationIfNecessary

public static org.springframework.beans.factory.config.BeanDefinition registerConfigurationIfNecessary(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Checks if a configuration object (usually from a <dwr:configuration> tag) has already been processed. If not it registers one automatically.

Parameters:
registry - a non null instance
Returns:
the configuration bean definition currently in the context (cannot be null)

Copyright 2008