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.
This commit is contained in:
@@ -17,14 +17,14 @@ package org.springframework.plugin.integration.config;
|
|||||||
|
|
||||||
import org.springframework.beans.factory.xml.BeanDefinitionParser;
|
import org.springframework.beans.factory.xml.BeanDefinitionParser;
|
||||||
import org.springframework.beans.factory.xml.NamespaceHandler;
|
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.
|
* {@link NamespaceHandler} to register {@link BeanDefinitionParser}s.
|
||||||
*
|
*
|
||||||
* @author Oliver Gierke
|
* @author Oliver Gierke
|
||||||
*/
|
*/
|
||||||
public class SpringPluginSpringIntegrationNamespaceHandler extends NamespaceHandlerSupport {
|
public class SpringPluginSpringIntegrationNamespaceHandler extends AbstractIntegrationNamespaceHandler {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns:int="http://www.springframework.org/schema/integration"
|
xmlns:int="http://www.springframework.org/schema/integration"
|
||||||
xmlns:int-plugin="http://www.springframework.org/schema/plugin/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/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">
|
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" />
|
invocation-arguments="payload" />
|
||||||
|
|
||||||
<int:channel id="sampleChannel" />
|
<int:channel id="sampleChannel" />
|
||||||
|
|
||||||
<int:channel id="foo" />
|
<int:channel id="foo" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
|||||||
Reference in New Issue
Block a user