INT-809, Cleaned uo some code and updated the docs to reflect the new 'publisher' namespace

This commit is contained in:
Oleg Zhurakousky
2009-10-28 23:39:54 +00:00
parent 8d49507cb0
commit 40b26b6be7
2 changed files with 54 additions and 59 deletions

View File

@@ -27,10 +27,8 @@ import org.springframework.beans.factory.support.ManagedMap;
import org.springframework.beans.factory.xml.AbstractBeanDefinitionParser;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.integration.aop.MethodNameMappingExpressionSource;
import org.springframework.integration.channel.ChannelResolver;
import org.springframework.integration.channel.MapBasedChannelResolver;
import org.springframework.integration.context.IntegrationContextUtils;
import org.springframework.integration.core.MessageChannel;
import org.springframework.util.StringUtils;
import org.springframework.util.xml.DomUtils;
import org.w3c.dom.Element;
@@ -51,7 +49,6 @@ public class PublisherParser extends AbstractBeanDefinitionParser {
BeanDefinitionBuilder spelSourceBilder = BeanDefinitionBuilder.genericBeanDefinition(MethodNameMappingExpressionSource.class.getName());
Map<String, Map<?,?>> mappings = this.getMappings(element, element.getAttribute("default-channel"));
spelSourceBilder.addConstructorArgValue(mappings.get("payload"));
MethodNameMappingExpressionSource m = null;
if (mappings.get("headers") != null){
spelSourceBilder.addPropertyValue("headerExpressionMap", mappings.get("headers"));
}