From c441b2254f2ae934846f9431869ca329bc5eb785 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Fri, 26 Sep 2008 18:45:07 +0000 Subject: [PATCH] Removed 'headerGenerator' property from MailOutboundChannelAdapterParser. --- .../mail/config/MailOutboundChannelAdapterParser.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/org.springframework.integration.mail/src/main/java/org/springframework/integration/mail/config/MailOutboundChannelAdapterParser.java b/org.springframework.integration.mail/src/main/java/org/springframework/integration/mail/config/MailOutboundChannelAdapterParser.java index 1d7c6eb99f..19c6443814 100644 --- a/org.springframework.integration.mail/src/main/java/org/springframework/integration/mail/config/MailOutboundChannelAdapterParser.java +++ b/org.springframework.integration.mail/src/main/java/org/springframework/integration/mail/config/MailOutboundChannelAdapterParser.java @@ -45,7 +45,6 @@ public class MailOutboundChannelAdapterParser extends AbstractOutboundChannelAda String host = element.getAttribute("host"); String username = element.getAttribute("username"); String password = element.getAttribute("password"); - String headerGeneratorRef = element.getAttribute("header-generator"); if (StringUtils.hasText(mailSenderRef)) { if (StringUtils.hasText(host) || StringUtils.hasText(username) || StringUtils.hasText(password)) { throw new ConfigurationException("The 'host', 'username', and 'password' properties " + @@ -67,9 +66,6 @@ public class MailOutboundChannelAdapterParser extends AbstractOutboundChannelAda else { throw new ConfigurationException("Either a 'mail-sender' reference or 'host' property is required."); } - if (StringUtils.hasText(headerGeneratorRef)) { - builder.addPropertyReference("headerGenerator", headerGeneratorRef); - } return builder.getBeanDefinition(); }