Permalink
Browse files

Fixed Spring Integration setup required after latest upgrade.

Switched to extend AbstractIntegrationNamespaceHandler to make sure the auto-channel registration works properly and channels are discovered wherever they are declared.
  • Loading branch information...
olivergierke committed Nov 22, 2012
1 parent cfddee9 commit a54e6e241d52800dd6d4e8ae6caa7dc17a953d7f
@@ -17,14 +17,14 @@
import org.springframework.beans.factory.xml.BeanDefinitionParser;
import org.springframework.beans.factory.xml.NamespaceHandler;
-import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
+import org.springframework.integration.config.xml.AbstractIntegrationNamespaceHandler;
/**
* {@link NamespaceHandler} to register {@link BeanDefinitionParser}s.
*
* @author Oliver Gierke
*/
-public class SpringPluginSpringIntegrationNamespaceHandler extends NamespaceHandlerSupport {
+public class SpringPluginSpringIntegrationNamespaceHandler extends AbstractIntegrationNamespaceHandler {
/*
* (non-Javadoc)
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-plugin="http://www.springframework.org/schema/plugin/integration"
- xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
+ xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/plugin/integration http://www.springframework.org/schema/plugin/integration/spring-plugin-integration.xsd">
@@ -19,7 +19,6 @@
invocation-arguments="payload" />
<int:channel id="sampleChannel" />
-
<int:channel id="foo" />
</beans>

0 comments on commit a54e6e2

Please sign in to comment.