svn commit: r802327 - /camel/branches/camel-1.x/components/camel-spring/src/main/java/org/apache/camel/spring/handler/CamelNamespaceHandler.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r802327 - /camel/branches/camel-1.x/components/camel-spring/src/main/java/org/apache/camel/spring/handler/CamelNamespaceHandler.java

ningjiang
Author: ningjiang
Date: Sat Aug  8 09:23:37 2009
New Revision: 802327

URL: http://svn.apache.org/viewvc?rev=802327&view=rev
Log:
CAMEL-1873 Added the back compatibility of camel 1.x branch

Modified:
    camel/branches/camel-1.x/components/camel-spring/src/main/java/org/apache/camel/spring/handler/CamelNamespaceHandler.java

Modified: camel/branches/camel-1.x/components/camel-spring/src/main/java/org/apache/camel/spring/handler/CamelNamespaceHandler.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-spring/src/main/java/org/apache/camel/spring/handler/CamelNamespaceHandler.java?rev=802327&r1=802326&r2=802327&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-spring/src/main/java/org/apache/camel/spring/handler/CamelNamespaceHandler.java (original)
+++ camel/branches/camel-1.x/components/camel-spring/src/main/java/org/apache/camel/spring/handler/CamelNamespaceHandler.java Sat Aug  8 09:23:37 2009
@@ -72,14 +72,15 @@
 
     public void init() {
         // These elements parser should be used inside the camel context
-        addBeanDefinitionParser("proxy", CamelProxyFactoryBean.class, false);
-        addBeanDefinitionParser("template", CamelTemplateFactoryBean.class, false);
-        addBeanDefinitionParser("export", CamelServiceExporter.class, false);
+        // Since we don't want break the back compatibility, we still register this parser to root
+        addBeanDefinitionParser("proxy", CamelProxyFactoryBean.class);
+        addBeanDefinitionParser("template", CamelTemplateFactoryBean.class);
+        addBeanDefinitionParser("export", CamelServiceExporter.class);
 
         // jmx agent cannot be used outside of the camel context
         addBeanDefinitionParser("jmxAgent", CamelJMXAgentType.class);
 
-        
+        registerParser("endpoint", endpointParser);
         boolean osgi = false;
         Class cl = CamelContextFactoryBean.class;
         try {