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:
Oliver Gierke
2012-11-22 10:26:41 +01:00
parent cfddee95c1
commit a54e6e241d
2 changed files with 3 additions and 4 deletions

View File

@@ -17,14 +17,14 @@ package org.springframework.plugin.integration.config;
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)

View File

@@ -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>