org.directwebremoting.spring
Class DwrNamespaceHandler

java.lang.Object
  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
      extended by org.directwebremoting.spring.DwrNamespaceHandler
All Implemented Interfaces:
org.springframework.beans.factory.xml.NamespaceHandler

public class DwrNamespaceHandler
extends org.springframework.beans.factory.xml.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(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
           
protected  java.util.Map lookupCreators(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
           
protected  void parseConverterSettings(ConverterConfig converterConfig, org.w3c.dom.Element parent)
           
protected  void registerCreator(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.lang.String javascript, org.springframework.beans.factory.support.BeanDefinitionBuilder creatorConfig, java.util.Map params, org.w3c.dom.NodeList children)
          Registers a new Creator in the registry using name javascript.
protected  org.springframework.beans.factory.config.BeanDefinition registerSpringConfiguratorIfNecessary(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
           
 
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, findDecoratorForNode, findParserForElement, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
 
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 org.springframework.beans.factory.config.BeanDefinition registerSpringConfiguratorIfNecessary(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)

registerCreator

protected void registerCreator(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
                               java.lang.String javascript,
                               org.springframework.beans.factory.support.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(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)

lookupConverters

protected java.util.Map lookupConverters(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)


Copyright © 2007. All Rights Reserved.