org.apache.camel.spring.handler
Class CamelNamespaceHandler

java.lang.Object
  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
      extended by org.apache.camel.spring.handler.CamelNamespaceHandler
All Implemented Interfaces:
NamespaceHandler
Direct Known Subclasses:
CamelNamespaceHandler

public class CamelNamespaceHandler
extends NamespaceHandlerSupport

Camel namespace for the spring XML configuration file.


Nested Class Summary
protected  class CamelNamespaceHandler.CamelContextBeanDefinitionParser
           
protected  class CamelNamespaceHandler.RouteContextDefinitionParser
           
 
Field Summary
protected  BeanDefinitionParser beanPostProcessorParser
           
protected  BeanDefinitionParser endpointParser
           
protected  Set<String> parserElementNames
           
 
Constructor Summary
CamelNamespaceHandler()
           
 
Method Summary
protected  void addDependsOn(CamelContextFactoryBean factoryBean, BeanDefinitionBuilder builder)
           
protected  void createBeanPostProcessor(ParserContext parserContext, String contextId, Element childElement, BeanDefinitionBuilder parentBuilder)
           
protected  JAXBContext createJaxbContext()
           
 ModelFileGenerator createModelFileGenerator()
           
 JAXBContext getJaxbContext()
           
protected  Set<Class> getJaxbPackages()
           
 void init()
           
protected  void injectNamespaces(Element element, Binder<Node> binder)
           
protected  Object parseUsingJaxb(Element element, ParserContext parserContext, Binder<Node> binder)
           
protected  void registerEndpointsWithIdsDefinedInFromOrToTypes(Element element, ParserContext parserContext, String contextId, Binder<Node> binder)
          Used for auto registering endpoints from the from or to DSL if they have an id attribute set
protected  void registerParser(String name, BeanDefinitionParser parser)
           
protected  void registerTemplates(Element element, ParserContext parserContext, String contextId)
          Used for auto registering producer and consumer templates if not already defined in XML.
static void renameNamespaceRecursive(Node node)
           
 
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

endpointParser

protected BeanDefinitionParser endpointParser

beanPostProcessorParser

protected BeanDefinitionParser beanPostProcessorParser

parserElementNames

protected Set<String> parserElementNames
Constructor Detail

CamelNamespaceHandler

public CamelNamespaceHandler()
Method Detail

renameNamespaceRecursive

public static void renameNamespaceRecursive(Node node)

createModelFileGenerator

public ModelFileGenerator createModelFileGenerator()
                                            throws JAXBException
Throws:
JAXBException

init

public void init()

createBeanPostProcessor

protected void createBeanPostProcessor(ParserContext parserContext,
                                       String contextId,
                                       Element childElement,
                                       BeanDefinitionBuilder parentBuilder)

registerParser

protected void registerParser(String name,
                              BeanDefinitionParser parser)

parseUsingJaxb

protected Object parseUsingJaxb(Element element,
                                ParserContext parserContext,
                                Binder<Node> binder)

getJaxbContext

public JAXBContext getJaxbContext()
                           throws JAXBException
Throws:
JAXBException

createJaxbContext

protected JAXBContext createJaxbContext()
                                 throws JAXBException
Throws:
JAXBException

getJaxbPackages

protected Set<Class> getJaxbPackages()

addDependsOn

protected void addDependsOn(CamelContextFactoryBean factoryBean,
                            BeanDefinitionBuilder builder)

injectNamespaces

protected void injectNamespaces(Element element,
                                Binder<Node> binder)

registerEndpointsWithIdsDefinedInFromOrToTypes

protected void registerEndpointsWithIdsDefinedInFromOrToTypes(Element element,
                                                              ParserContext parserContext,
                                                              String contextId,
                                                              Binder<Node> binder)
Used for auto registering endpoints from the from or to DSL if they have an id attribute set


registerTemplates

protected void registerTemplates(Element element,
                                 ParserContext parserContext,
                                 String contextId)
Used for auto registering producer and consumer templates if not already defined in XML.



Apache CAMEL