org.directwebremoting.spring
Class DwrNamespaceHandler

java.lang.Object
  extended by NamespaceHandlerSupport
      extended by org.directwebremoting.spring.DwrNamespaceHandler

public class DwrNamespaceHandler
extends NamespaceHandlerSupport

The Spring namespace handler which handles all elements that are defined as part of the DWR namespace.
The DWR namespace is defined in the spring-dwr-X.X.xsd file. All elements that are encountered in Spring configuration files are automatically converted to their actual bean representation in the Spring bean registry.

Author:
Erik Wiersma, Bram Smeets, Joe Walker [joe at getahead dot ltd dot uk]

Nested Class Summary
protected  class DwrNamespaceHandler.ConfigurationBeanDefinitionParser
           
protected  class DwrNamespaceHandler.ControllerBeanDefinitionParser
           
protected  class DwrNamespaceHandler.ConverterBeanDefinitionDecorator
           
protected  class DwrNamespaceHandler.CreatorBeanDefinitionDecorator
          Uses the BeanDefinitionDecorator since we need access to the name of the parent definition?? Register the creatores: spring, new, null, scripted, jsf, struts, pageflow
protected  class DwrNamespaceHandler.InitDefinitionDecorator
          Parse the <dwr:init> elements
protected  class DwrNamespaceHandler.RemoteBeanDefinitionDecorator
           
protected  class DwrNamespaceHandler.SignaturesBeanDefinitionDecorator
           
 
Field Summary
protected static java.lang.String DEFAULT_SPRING_CONFIGURATOR_ID
           
protected static Logger log
          The log stream
 
Constructor Summary
DwrNamespaceHandler()
           
 
Method Summary
 void init()
           
protected  java.util.Map lookupConverters(BeanDefinitionRegistry registry)
           
protected  java.util.Map lookupCreators(BeanDefinitionRegistry registry)
           
protected  void parseConverterSettings(ConverterConfig converterConfig, org.w3c.dom.Element parent)
           
protected  void registerCreator(BeanDefinitionRegistry registry, java.lang.String javascript, BeanDefinitionBuilder creatorConfig, java.util.Map params, org.w3c.dom.NodeList children)
          Registers a new Creator in the registry using name javascript.
protected  BeanDefinition registerSpringConfiguratorIfNecessary(BeanDefinitionRegistry registry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SPRING_CONFIGURATOR_ID

protected static final java.lang.String DEFAULT_SPRING_CONFIGURATOR_ID
See Also:
Constant Field Values

log

protected static final Logger log
The log stream

Constructor Detail

DwrNamespaceHandler

public DwrNamespaceHandler()
Method Detail

init

public void init()

registerSpringConfiguratorIfNecessary

protected BeanDefinition registerSpringConfiguratorIfNecessary(BeanDefinitionRegistry registry)

registerCreator

protected void registerCreator(BeanDefinitionRegistry registry,
                               java.lang.String javascript,
                               BeanDefinitionBuilder creatorConfig,
                               java.util.Map params,
                               org.w3c.dom.NodeList children)
Registers a new Creator in the registry using name javascript.

Parameters:
registry - The definition of all the Beans
javascript - The name of the bean in the registry.
beanCreator - The Creator to register.
children - The node list to check for nested elements

parseConverterSettings

protected void parseConverterSettings(ConverterConfig converterConfig,
                                      org.w3c.dom.Element parent)

lookupCreators

protected java.util.Map lookupCreators(BeanDefinitionRegistry registry)

lookupConverters

protected java.util.Map lookupConverters(BeanDefinitionRegistry registry)