Removed 'headerGenerator' property from MailOutboundChannelAdapterParser.

This commit is contained in:
Mark Fisher
2008-09-26 18:45:07 +00:00
parent f2b7353165
commit c441b2254f

View File

@@ -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();
}