Fix typo in SimpleMailMessageItemWriter Javadoc
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
7f13c5323f
commit
f42f1ddd5e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2010 the original author or authors.
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -35,24 +35,24 @@ import org.springframework.util.Assert;
|
||||
* transactional, failures should be dealt with here if possible rather than
|
||||
* allowing them to be rethrown (which is the default).
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Delegates the actual sending of messages to a {@link MailSender}, using the
|
||||
* batch method {@link MailSender#send(SimpleMailMessage[])}, which normally
|
||||
* uses a single server connection for the whole batch (depending on the
|
||||
* implementation). The efficiency of for large volumes of messages (repeated
|
||||
* implementation). The efficiency for large volumes of messages (repeated
|
||||
* calls to the item writer) might be improved by the use of a special
|
||||
* {@link MailSender} that caches connections to the server in between calls.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Stateless, so automatically restartable.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @author Dave Syer
|
||||
*
|
||||
*
|
||||
* @since 2.1
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class SimpleMailMessageItemWriter implements ItemWriter<SimpleMailMessage>, InitializingBean {
|
||||
|
||||
@@ -62,7 +62,7 @@ public class SimpleMailMessageItemWriter implements ItemWriter<SimpleMailMessage
|
||||
|
||||
/**
|
||||
* A {@link MailSender} to be used to send messages in {@link #write(List)}.
|
||||
*
|
||||
*
|
||||
* @param mailSender The {@link MailSender} to be used.
|
||||
*/
|
||||
public void setMailSender(MailSender mailSender) {
|
||||
@@ -72,7 +72,7 @@ public class SimpleMailMessageItemWriter implements ItemWriter<SimpleMailMessage
|
||||
/**
|
||||
* The handler for failed messages. Defaults to a
|
||||
* {@link DefaultMailErrorHandler}.
|
||||
*
|
||||
*
|
||||
* @param mailErrorHandler the mail error handler to set
|
||||
*/
|
||||
public void setMailErrorHandler(MailErrorHandler mailErrorHandler) {
|
||||
@@ -81,9 +81,9 @@ public class SimpleMailMessageItemWriter implements ItemWriter<SimpleMailMessage
|
||||
|
||||
/**
|
||||
* Check mandatory properties (mailSender).
|
||||
*
|
||||
*
|
||||
* @throws IllegalStateException if the mandatory properties are not set
|
||||
*
|
||||
*
|
||||
* @see InitializingBean#afterPropertiesSet()
|
||||
*/
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user