From 7e41ff03817a8b4fc934676123b98ddd29a2af94 Mon Sep 17 00:00:00 2001
From: robokaso
- * Convenience class for driving query input sources. Input Sources of this type
+ * Convenience class for driving query item readers. Item readers of this type
* use a 'driving query' to return back a list of keys. A key can be defined as
* anything that can uniquely identify a record so that a more detailed record
* can be retrieved for each object. This allows a much smaller footprint to be
@@ -95,9 +95,7 @@ public class DrivingQueryItemReader implements ItemReader, InitializingBean, Ite
}
/**
- * Return the next key in the List. If the ItemReader has not been
- * initialized yet, then {@link AbstractDrivingQueryItemReader.open()} will
- * be called.
+ * Return the next key in the List.
*
* @return next key in the list if not index is not at the last element,
* null otherwise.
@@ -140,10 +138,8 @@ public class DrivingQueryItemReader implements ItemReader, InitializingBean, Ite
}
/**
- * Initialize the input source by delegating to the subclass in order to
- * retrieve the keys. The input source will also be registered with the
- * {@link BatchTransactionSynchronizationManager} in order to ensure it is
- * notified about commits and rollbacks.
+ * Initialize the item reader by delegating to the subclass in order to
+ * retrieve the keys.
*
* @throws IllegalStateException if the keys list is null or initialized is
* true.
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateAwareItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateAwareItemWriter.java
index f3e1a8ffc..8e82c0e99 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateAwareItemWriter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateAwareItemWriter.java
@@ -85,8 +85,6 @@ public class HibernateAwareItemWriter extends AbstractTransactionalResourceItemW
/**
* Check mandatory properties - there must be a delegate and hibernateTemplate.
- *
- * @see org.springframework.dao.support.DaoSupport#initDao()
*/
public void afterPropertiesSet() throws Exception {
Assert.notNull(delegate, "HibernateAwareItemWriter requires an ItemWriter as a delegate.");
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateCursorItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateCursorItemReader.java
index aaca647f2..62ce82474 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateCursorItemReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/HibernateCursorItemReader.java
@@ -30,9 +30,9 @@ import org.springframework.util.ClassUtils;
/**
* {@link ItemReader} for reading database records built on top of Hibernate.
*
- * It executes the HQL {@link #queryString} when initialized and iterates over
- * the result set as {@link #read()} method is called, returning an object
- * corresponding to current row.
+ * It executes the HQL {@link #setQueryString(String)} when initialized and
+ * iterates over the result set as {@link #read()} method is called, returning
+ * an object corresponding to current row.
*
* Input source can be configured to use either {@link StatelessSession}
* sufficient for simple mappings without the need to cascade to associated
@@ -76,11 +76,11 @@ public class HibernateCursorItemReader extends ExecutionContextUserSupport imple
}
public Object read() {
-
+
if (cursor.next()) {
currentProcessedRow++;
Object[] data = cursor.get();
- if (data.length>1) {
+ if (data.length > 1) {
return data;
}
return data[0];
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/IbatisDrivingQueryItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/IbatisDrivingQueryItemReader.java
index 718da123b..9e172ab74 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/IbatisDrivingQueryItemReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/IbatisDrivingQueryItemReader.java
@@ -58,7 +58,7 @@ public class IbatisDrivingQueryItemReader extends DrivingQueryItemReader {
/**
* Set the {@link SqlMapClientTemplate} to use for this input source.
*
- * @param sqlMapClientTemplate
+ * @param sqlMapClient
*/
public void setSqlMapClient(
SqlMapClient sqlMapClient) {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JdbcCursorItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JdbcCursorItemReader.java
index bb85abcd0..5af63faff 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JdbcCursorItemReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JdbcCursorItemReader.java
@@ -53,7 +53,7 @@ import org.springframework.util.ClassUtils;
/**
*
- * Simple input source that opens a JDBC cursor and continually retrieves the
+ * Simple item reader that opens a JDBC cursor and continually retrieves the
* next row in the ResultSet. It is extremely important to note that the
* JdbcDriver used must be version 3.0 or higher. This is because earlier
* versions do not support holding a ResultSet open over commits.
@@ -190,7 +190,6 @@ public class JdbcCursorItemReader extends ExecutionContextUserSupport implements
*
* @returns Object returned by RowMapper
* @throws DataAccessException
- * @throws IllegalStateExceptino if mapper is null.
*/
public Object read() throws Exception {
@@ -223,7 +222,7 @@ public class JdbcCursorItemReader extends ExecutionContextUserSupport implements
* will be closed. This must be called or the connection and cursor will be
* held open indefinitely!
*
- * @see org.springframework.batch.item.ResourceLifecycle#close(ExecutionContext)
+ * @see org.springframework.batch.item.ItemStream#close(ExecutionContext)
*/
public void close(ExecutionContext executionContext) {
initialized = false;
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/KeyCollector.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/KeyCollector.java
index 459bdaf8b..be7d3a994 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/KeyCollector.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/KeyCollector.java
@@ -39,7 +39,6 @@ public interface KeyCollector {
* for all KeyCollector implementations.
*
* @param key to be converted to restart data.
- * @return {@link ExecutionContext} representation of the key.
* @throws IllegalArgumentException if key is null.
* @throws IllegalArgumentException if key is an incompatible type.
*/
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/ColumnMapItemPreparedStatementSetter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/ColumnMapItemPreparedStatementSetter.java
index d9f5b6df4..fc7f740e3 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/ColumnMapItemPreparedStatementSetter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/ColumnMapItemPreparedStatementSetter.java
@@ -17,7 +17,7 @@ import org.springframework.jdbc.core.StatementCreatorUtils;
import org.springframework.util.Assert;
/**
- *
*
* Implementations are expected to be stateful and will be called multiple times
- * for each batch, with each call to {@link #next} returning a different value
+ * for each batch, with each call to {@link #read()} returning a different value
* and finally returning null when all input data is exhausted.
*
* Implementations need to be thread safe and clients of a {@link ItemReader}
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java
index 00a6938ab..b8607d33d 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java
@@ -33,14 +33,14 @@ public abstract class ItemStreamSupport implements ItemStream {
/**
* No-op.
- * @see org.springframework.batch.item.ItemStream#open()
+ * @see org.springframework.batch.item.ItemStream#open(ExecutionContext)
*/
public void open(ExecutionContext executionContext) throws ItemStreamException {
}
/**
* Return empty {@link ExecutionContext}.
- * @see org.springframework.batch.item.ExecutionContextProvider#update(ExecutionContext)
+ * @see org.springframework.batch.item.ItemStream#update(ExecutionContext)
*/
public void update(ExecutionContext executionContext) {
}
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/MarkFailedException.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/MarkFailedException.java
index e0a926b08..c7c58368a 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/MarkFailedException.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/MarkFailedException.java
@@ -35,8 +35,8 @@ public class MarkFailedException extends ItemReaderException {
/**
* Create a new {@link MarkFailedException} based on a message and another exception.
*
- * @param message the message for this exception
- * @param cause the other exception
+ * @param msg the message for this exception
+ * @param nested the other exception
*/
public MarkFailedException(String msg, Throwable nested) {
super(msg, nested);
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/NoWorkFoundException.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/NoWorkFoundException.java
index f02ae21aa..da49b3e08 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/NoWorkFoundException.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/NoWorkFoundException.java
@@ -35,8 +35,8 @@ public class NoWorkFoundException extends ItemReaderException {
/**
* Create a new {@link NoWorkFoundException} based on a message and another exception.
*
- * @param message the message for this exception
- * @param cause the other exception
+ * @param msg the message for this exception
+ * @param nested the other exception
*/
public NoWorkFoundException(String msg, Throwable nested) {
super(msg, nested);
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ReaderNotOpenException.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ReaderNotOpenException.java
index 822065e2d..8f1db5a32 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ReaderNotOpenException.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ReaderNotOpenException.java
@@ -34,8 +34,8 @@ public class ReaderNotOpenException extends ItemReaderException {
/**
* Create a new {@link ReaderNotOpenException} based on a message and another exception.
*
- * @param message the message for this exception
- * @param cause the other exception
+ * @param msg the message for this exception
+ * @param nested the other exception
*/
public ReaderNotOpenException(String msg, Throwable nested) {
super(msg, nested);
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ResetFailedException.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ResetFailedException.java
index 95445b58c..eb39b4abb 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ResetFailedException.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ResetFailedException.java
@@ -35,8 +35,8 @@ public class ResetFailedException extends ItemReaderException {
/**
* Create a new {@link ResetFailedException} based on a message and another exception.
*
- * @param message the message for this exception
- * @param cause the other exception
+ * @param msg the message for this exception
+ * @param nested the other exception
*/
public ResetFailedException(String msg, Throwable nested) {
super(msg, nested);
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/UnexpectedInputException.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/UnexpectedInputException.java
index d39f13231..fe3588c2c 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/UnexpectedInputException.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/UnexpectedInputException.java
@@ -37,8 +37,8 @@ public class UnexpectedInputException extends ItemReaderException {
/**
* Create a new {@link UnexpectedInputException} based on a message and another exception.
*
- * @param message the message for this exception
- * @param cause the other exception
+ * @param msg the message for this exception
+ * @param nested the other exception
*/
public UnexpectedInputException(String msg, Throwable nested) {
super(msg, nested);
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/AbstractMethodInvokingDelegator.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/AbstractMethodInvokingDelegator.java
index dfb3f041c..b1b5f051d 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/AbstractMethodInvokingDelegator.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/AbstractMethodInvokingDelegator.java
@@ -156,14 +156,14 @@ public class AbstractMethodInvokingDelegator implements InitializingBean {
}
/**
- * @param targetMethod name of the method to be invoked on {@link #targetObject}.
+ * @param targetMethod name of the method to be invoked on {@link #setTargetObject(Object)}.
*/
public void setTargetMethod(String targetMethod) {
this.targetMethod = targetMethod;
}
/**
- * @param arguments arguments values for the {{@link #targetMethod}.
+ * @param arguments arguments values for the {{@link #setTargetMethod(String)}.
* These are not expected to change during the lifetime of the delegator
* and will be used only when the subclass tries to invoke the target method
* without providing explicit argument values.
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/PropertyExtractingDelegatingItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/PropertyExtractingDelegatingItemWriter.java
index 3da2765fd..9aa88b734 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/PropertyExtractingDelegatingItemWriter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/PropertyExtractingDelegatingItemWriter.java
@@ -58,7 +58,7 @@ public class PropertyExtractingDelegatingItemWriter extends AbstractMethodInvoki
}
/**
- * @param fieldsUsedAsTargetMethodArguments the values of the these item's fields
+ * @param fieldsUsedAsMethodArguments the values of the these item's fields
* will be used as arguments for the delegate method. Nested property values are
* supported, e.g. address.city
*/
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractTransactionalResourceItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractTransactionalResourceItemWriter.java
index f806f8158..04f1d87e4 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractTransactionalResourceItemWriter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractTransactionalResourceItemWriter.java
@@ -71,7 +71,7 @@ public abstract class AbstractTransactionalResourceItemWriter implements ItemWri
*
* @throws Exception
*
- * @see org.springframework.batch.io.OutputSource#write(java.lang.Object)
+ * @see org.springframework.batch.item.ItemWriter#write(Object)
*/
public void write(Object output) throws Exception {
bindTransactionResources();
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/BatchSqlUpdateItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/BatchSqlUpdateItemWriter.java
index 8fc7179e3..be08ab223 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/BatchSqlUpdateItemWriter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/BatchSqlUpdateItemWriter.java
@@ -96,8 +96,6 @@ public class BatchSqlUpdateItemWriter extends AbstractTransactionalResourceItemW
/**
* Check mandatory properties - there must be a delegate.
- *
- * @see org.springframework.dao.support.DaoSupport#initDao()
*/
public void afterPropertiesSet() throws Exception {
Assert.notNull(jdbcTemplate, "BatchSqlUpdateItemWriter requires an data source.");
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/DrivingQueryItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/DrivingQueryItemReader.java
index 8210d8ac5..e64b249ad 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/DrivingQueryItemReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/DrivingQueryItemReader.java
@@ -27,7 +27,7 @@ import org.springframework.util.Assert;
/**
*
- * Jdbc implementation of the {@link KeyCollector} interface that works for - * composite keys. (i.e. keys represented by multiple columns) A sql query to be - * used to return the keys and a {@link KeyMappingPreparedStatementSetter} to map each - * row in the resultset to an Object must be set in order to work correctly. + * JDBC implementation of the {@link KeyCollector} interface that works for + * composite keys. (i.e. keys represented by multiple columns) A SQL query to be + * used to return the keys and a {@link ItemPreparedStatementSetter} to map each + * row in the result set to an Object must be set in order to work correctly. *
* * @author Lucas Ward * @see DrivingQueryItemReader - * @see KeyMappingPreparedStatementSetter + * @see ItemPreparedStatementSetter */ public class MultipleColumnJdbcKeyCollector extends ExecutionContextUserSupport implements KeyCollector { @@ -66,8 +66,7 @@ public class MultipleColumnJdbcKeyCollector extends ExecutionContextUserSupport * Construct a new ItemReader. * * @param jdbcTemplate - * @param sql - Sql statement that returns all keys to process. - * @param keyMapper - RowMapper that maps each row of the ResultSet to an + * @param sql - SQL statement that returns all keys to process. * object. */ public MultipleColumnJdbcKeyCollector(JdbcTemplate jdbcTemplate, String sql) { @@ -128,7 +127,7 @@ public class MultipleColumnJdbcKeyCollector extends ExecutionContextUserSupport } /** - * Set the {@link KeyMappingPreparedStatementSetter} to be used to map a resultset + * Set the {@link RowMapper} to be used to map a result set * to keys. * * @param keyMapper diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/SingleColumnJdbcKeyCollector.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/SingleColumnJdbcKeyCollector.java index 3be56b020..d2bc8c2b2 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/SingleColumnJdbcKeyCollector.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/SingleColumnJdbcKeyCollector.java @@ -101,7 +101,6 @@ public class SingleColumnJdbcKeyCollector extends ExecutionContextUserSupport im /** * Get the restart data representing the last processed key. * - * @see KeyCollector#saveState(Object) * @throws IllegalArgumentException if key is null. */ public void updateContext(Object key, ExecutionContext executionContext) { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemReader.java index 5c83d76d2..a9d18fe00 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemReader.java @@ -39,18 +39,21 @@ import org.springframework.util.Assert; import org.springframework.util.ClassUtils; /** - * This class represents a {@link ItemReader}, that reads lines from text file, tokenizes them to structured tuples ({@link FieldSet}s) - * instances and maps the {@link FieldSet}s to domain objects. The location of the file is defined by the resource - * property. To separate the structure of the file, {@link LineTokenizer} is used to parse data obtained from the file. - *- * This class supports restart, skipping invalid lines and storing statistics. It can be configured to setup - * {@link FieldSet} column names from the file header, skip given number of lines at the beginning of the file. + * This class supports restart, skipping invalid lines and storing statistics. + * It can be configured to setup {@link FieldSet} column names from the file + * header, skip given number of lines at the beginning of the file. *
* * @author Waseem Malik @@ -58,8 +61,7 @@ import org.springframework.util.ClassUtils; * @author Robert Kasanicky * @author Dave Syer */ -public class FlatFileItemReader extends ExecutionContextUserSupport implements ItemReader, ItemStream, - InitializingBean { +public class FlatFileItemReader extends ExecutionContextUserSupport implements ItemReader, ItemStream, InitializingBean { private static Log log = LogFactory.getLog(FlatFileItemReader.class); @@ -83,11 +85,12 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I private LineTokenizer tokenizer = new DelimitedLineTokenizer(); private FieldSetMapper fieldSetMapper; - + private boolean saveState = false; /** - * Encapsulates the state of the input source. If it is null then we are uninitialized. + * Encapsulates the state of the input source. If it is null then we are + * uninitialized. */ private LineReader reader; @@ -144,13 +147,13 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I record = readLine(); } } - + } /** * Close and null out the reader. * - * @throws Exception + * @throws ItemStreamException */ public void close(ExecutionContext executionContext) throws ItemStreamException { try { @@ -158,16 +161,18 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I log.debug("Closing flat file for reading: " + resource); reader.close(null); } - } finally { + } + finally { reader = null; } } /** - * Reads a line from input, tokenizes is it using the {@link #tokenizer} and maps to domain object using - * {@link #fieldSetMapper}. + * Reads a line from input, tokenizes is it using the + * {@link #setLineTokenizer(LineTokenizer)} and maps to domain object using + * {@link #setFieldSetMapper(FieldSetMapper)}. * - * @see org.springframework.batch.io.ItemReader#read() + * @see org.springframework.batch.item.ItemReader#read() */ public Object read() throws Exception { String line = readLine(); @@ -176,34 +181,38 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I try { FieldSet tokenizedLine = tokenizer.tokenize(line); return fieldSetMapper.mapLine(tokenizedLine); - } catch (RuntimeException ex) { + } + catch (RuntimeException ex) { // add current line count to message and re-throw int lineCount = getReader().getPosition(); - throw new FlatFileParseException("Parsing error at line: " + lineCount + " in resource=" + resource.getDescription() - + ", input=[" + line + "]", ex, line, lineCount); + throw new FlatFileParseException("Parsing error at line: " + lineCount + " in resource=" + + resource.getDescription() + ", input=[" + line + "]", ex, line, lineCount); } } return null; } /** - * This method returns the execution attributes for the reader. It returns the current Line Count which can be used - * to reinitialise the batch job in case of restart. + * This method returns the execution attributes for the reader. It returns + * the current Line Count which can be used to reinitialise the batch job in + * case of restart. */ public void update(ExecutionContext executionContext) { if (reader == null) { throw new ItemStreamException("ItemStream not open or already closed."); } - - if(saveState){ + + if (saveState) { Assert.notNull(executionContext, "ExecutionContext must not be null"); executionContext.putLong(getKey(LINES_READ_COUNT), reader.getPosition()); } } /** - * Mark is supported as long as this {@link ItemStream} is used in a single-threaded environment. The state backing - * the mark is a single counter, keeping track of the current position, so multiple threads cannot be accommodated. + * Mark is supported as long as this {@link ItemStream} is used in a + * single-threaded environment. The state backing the mark is a single + * counter, keeping track of the current position, so multiple threads + * cannot be accommodated. * * @see org.springframework.batch.item.ItemReader#mark() */ @@ -226,11 +235,14 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I private String readLine() { try { return (String) getReader().read(); - } catch (ItemStreamException e) { + } + catch (ItemStreamException e) { throw e; - } catch (ItemReaderException e) { + } + catch (ItemReaderException e) { throw e; - } catch (Exception e) { + } + catch (Exception e) { throw new IllegalStateException(); } } @@ -247,7 +259,8 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I } /** - * Setter for resource property. The location of an input stream that can be read. + * Setter for resource property. The location of an input stream that can be + * read. * * @param resource */ @@ -256,8 +269,9 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I } /** - * Public setter for the recordSeparatorPolicy. Used to determine where the line endings are and do things like - * continue over a line ending if inside a quoted string. + * Public setter for the recordSeparatorPolicy. Used to determine where the + * line endings are and do things like continue over a line ending if inside + * a quoted string. * * @param recordSeparatorPolicy the recordSeparatorPolicy to set */ @@ -266,8 +280,8 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I } /** - * Setter for comment prefixes. Can be used to ignore header lines as well by using e.g. the first couple of column - * names as a prefix. + * Setter for comment prefixes. Can be used to ignore header lines as well + * by using e.g. the first couple of column names as a prefix. * * @param comments an array of comment line prefixes. */ @@ -277,8 +291,10 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I } /** - * Indicates whether first line is a header. If the tokenizer is an {@link AbstractLineTokenizer} and the column - * names haven't been set already then the header will be used to setup column names. Default isfalse.
+ * Indicates whether first line is a header. If the tokenizer is an
+ * {@link AbstractLineTokenizer} and the column names haven't been set
+ * already then the header will be used to setup column names. Default is
+ * false.
*/
public void setFirstLineIsHeader(boolean firstLineIsHeader) {
this.firstLineIsHeader = firstLineIsHeader;
@@ -301,8 +317,10 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I
}
/**
- * Public setter for the number of lines to skip at the start of a file. Can be used if the file contains a header
- * without useful (column name) information, and without a comment delimiter at the beginning of the lines.
+ * Public setter for the number of lines to skip at the start of a file. Can
+ * be used if the file contains a header without useful (column name)
+ * information, and without a comment delimiter at the beginning of the
+ * lines.
*
* @param linesToSkip the number of lines to skip
*/
@@ -311,9 +329,11 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I
}
/**
- * Setter for the encoding for this input source. Default value is {@value #DEFAULT_CHARSET}.
+ * Setter for the encoding for this input source. Default value is
+ * {@link #DEFAULT_CHARSET}.
*
- * @param encoding a properties object which possibly contains the encoding for this input file;
+ * @param encoding a properties object which possibly contains the encoding
+ * for this input file;
*/
public void setEncoding(String encoding) {
this.encoding = encoding;
@@ -323,12 +343,12 @@ public class FlatFileItemReader extends ExecutionContextUserSupport implements I
Assert.notNull(resource, "Input resource must not be null");
Assert.notNull(fieldSetMapper, "FieldSetMapper must not be null.");
}
-
+
/**
- * Set the boolean indicating whether or not state should be saved
- * in the provided {@link ExecutionContext} during the {@link ItemStream}
- * call to update. Setting this to false means that it will always start
- * at the beginning.
+ * Set the boolean indicating whether or not state should be saved in the
+ * provided {@link ExecutionContext} during the {@link ItemStream} call to
+ * update. Setting this to false means that it will always start at the
+ * beginning.
*
* @param saveState
*/
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemWriter.java
index 538640e8f..5b4029ec9 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemWriter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemWriter.java
@@ -56,8 +56,6 @@ import org.springframework.util.ClassUtils;
*
* Uses buffered writer to improve performance.
* This class will be updated in the future to use a buffering approach to
* handling transactions, rather than outputting directly to the file and
@@ -160,7 +158,7 @@ public class FlatFileItemWriter extends ExecutionContextUserSupport implements I
}
/**
- * @see ResourceLifecycle#close(ExecutionContext)
+ * @see ItemStream#close(ExecutionContext)
*/
public void close(ExecutionContext executionContext) {
if (state != null) {
@@ -193,7 +191,7 @@ public class FlatFileItemWriter extends ExecutionContextUserSupport implements I
/**
* Initialize the Output Template.
*
- * @see ResourceLifecycle#open()
+ * @see ItemStream#open(ExecutionContext)
*/
public void open(ExecutionContext executionContext) {
OutputState outputState = getOutputState();
@@ -298,7 +296,7 @@ public class FlatFileItemWriter extends ExecutionContextUserSupport implements I
}
/**
- * @param properties
+ * @param executionContext
*/
public void restoreFrom(ExecutionContext executionContext) {
lastMarkedByteOffsetPosition = executionContext.getLong(getKey(RESTART_DATA_NAME));
@@ -345,9 +343,7 @@ public class FlatFileItemWriter extends ExecutionContextUserSupport implements I
}
/**
- * @param data
- * @param offset
- * @param length
+ * @param line
* @throws IOException
*/
public void write(String line) throws IOException {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapper.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapper.java
index 01253c547..81ee85b4e 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapper.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapper.java
@@ -99,7 +99,7 @@ public class BeanWrapperFieldSetMapper extends DefaultPropertyEditorRegistrar im
/**
* The bean name (id) for an object that can be populated from the field set
- * that will be passed into {@link #mapLine(DefaultFieldSet)}. Typically a
+ * that will be passed into {@link #mapLine(FieldSet)}. Typically a
* prototype scoped bean so that a new instance is returned for each field
* set mapped.
*
@@ -115,7 +115,7 @@ public class BeanWrapperFieldSetMapper extends DefaultPropertyEditorRegistrar im
/**
* Public setter for the type of bean to create instead of using a prototype
* bean. An object of this type will be created from its default constructor
- * for every call to {@link #mapLine(DefaultFieldSet)}.
+ * for every call to {@link #mapLine(FieldSet)}.
*
* Either this property or the prototype bean name must be specified, but
* not both.
@@ -150,7 +150,7 @@ public class BeanWrapperFieldSetMapper extends DefaultPropertyEditorRegistrar im
* the {@link DataBinder} from {@link #createBinder(Object)} has errors
* after binding).
*
- * @see org.springframework.batch.item.file.mapping.FieldSetMapper#mapLine(org.springframework.batch.item.file.mapping.DefaultFieldSet)
+ * @see org.springframework.batch.item.file.mapping.FieldSetMapper#mapLine(org.springframework.batch.item.file.mapping.FieldSet)
*/
public Object mapLine(FieldSet fs) {
Object copy = getBean();
@@ -173,7 +173,7 @@ public class BeanWrapperFieldSetMapper extends DefaultPropertyEditorRegistrar im
* bind the properties form a field set into the target object. This
* implementation creates a new {@link DataBinder} and calls out to
* {@link #initBinder(DataBinder)} and
- * {@link #registerPropertyEditors(DataBinder)}.
+ * {@link #registerCustomEditors(PropertyEditorRegistry)}.
*
* @param target
* @return a {@link DataBinder} that can be used to bind properties to the
@@ -194,10 +194,10 @@ public class BeanWrapperFieldSetMapper extends DefaultPropertyEditorRegistrar im
* by {@link #createBinder(Object)}.
*
* Note that registration of custom property editors should be done in
- * {@link #registerPropertyEditors(PropertyEditorRegistry)}, not here! This
+ * {@link #registerCustomEditors(PropertyEditorRegistry)}, not here! This
* method will only be called when a new data binder is created.
* @param binder new binder instance
- * @see #createBinder(RequestContext, Object)
+ * @see #createBinder(Object)
*/
protected void initBinder(DataBinder binder) {
}
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/FieldSet.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/FieldSet.java
index 4e113533d..ad56268cf 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/FieldSet.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/FieldSet.java
@@ -319,9 +319,7 @@ public interface FieldSet {
* designated column index.
*
* @param index the field index.
- * @param pattern the pattern describing the date and time format
* @throws IndexOutOfBoundsException if the index is out of bounds.
- * @see #DEFAULT_DATE_PATTERN
*/
Date readDate(int index);
@@ -330,10 +328,8 @@ public interface FieldSet {
* with given name.
*
* @param name the field name.
- * @param pattern the pattern describing the date and time format
* @throws IllegalArgumentException if a column with given name is not
* defined.
- * @see #DEFAULT_DATE_PATTERN
*/
Date readDate(String name);
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/separator/LineReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/separator/LineReader.java
index ac27611f5..14334938c 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/separator/LineReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/separator/LineReader.java
@@ -25,7 +25,7 @@ import org.springframework.batch.item.ItemStream;
public interface LineReader extends ItemReader, ItemStream {
/**
- * @return
+ * @return position
*/
int getPosition();
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/separator/ResourceLineReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/separator/ResourceLineReader.java
index 326abe109..c7c79adee 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/separator/ResourceLineReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/separator/ResourceLineReader.java
@@ -68,7 +68,7 @@ public class ResourceLineReader extends ItemStreamSupport implements LineReader,
private Collection comments = DEFAULT_COMMENTS;
- // Encapsulates the state of the input source.
+ // Encapsulates the state of the reader.
private State state = null;
private RecordSeparatorPolicy recordSeparatorPolicy = new DefaultRecordSeparatorPolicy();
@@ -113,7 +113,7 @@ public class ResourceLineReader extends ItemStreamSupport implements LineReader,
*
* @return a String.
*
- * @see org.springframework.batch.item.adapter.support.ItemReader#read()
+ * @see org.springframework.batch.item.ItemReader#read()
*/
public synchronized Object read() {
// Make a copy of the recordSeparatorPolicy reference, in case it is
@@ -147,9 +147,7 @@ public class ResourceLineReader extends ItemStreamSupport implements LineReader,
}
/**
- * A no-op because the oobject is initialized with all it needs to open in the constructor.
- *
- * @see org.springframework.batch.item.ResourceLifecycle#open()
+ * Creates internal state object.
*/
public synchronized void open() {
state = new State();
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/DelimitedLineAggregator.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/DelimitedLineAggregator.java
index c0bd716e9..8ac8b7bb6 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/DelimitedLineAggregator.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/DelimitedLineAggregator.java
@@ -33,8 +33,6 @@ public class DelimitedLineAggregator implements LineAggregator {
* Method used to create string representing object.
*
* @param fieldSet arrays of strings representing data to be stored
- * @param lineDescriptor for this implementation this parameter is not
- * used
*/
public String aggregate(FieldSet fieldSet) {
StringBuffer buffer = new StringBuffer();
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/LineAggregator.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/LineAggregator.java
index 06ffcb67e..6fc828a5a 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/LineAggregator.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/LineAggregator.java
@@ -21,15 +21,15 @@ import org.springframework.batch.item.file.mapping.FieldSet;
/**
* Interface used to create string used to create string representing object.
- * @author tomas.slanina
*
+ * @author tomas.slanina
*/
public interface LineAggregator {
/**
* Method used to create a string to be stored from the array of values.
*
* @param fieldSet values to be converted
- * @return
+ * @return string
*/
public String aggregate(FieldSet fieldSet);
}
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/Range.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/Range.java
index 798568f93..337a7ea34 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/Range.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/Range.java
@@ -12,7 +12,7 @@ import org.springframework.util.Assert;
*/
public class Range {
- private final static int UPPER_BORDER_NOT_DEFINED = Integer.MAX_VALUE;
+ public final static int UPPER_BORDER_NOT_DEFINED = Integer.MAX_VALUE;
private int min;
private int max;
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/RangeArrayPropertyEditor.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/RangeArrayPropertyEditor.java
index 790703798..568bd8779 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/RangeArrayPropertyEditor.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/RangeArrayPropertyEditor.java
@@ -26,7 +26,7 @@ import org.springframework.util.StringUtils;
* '36, 14, 1-10, 15, 49-57' is equal to '36-48, 14-14, 1-10, 15-35, 49-57'
*
* Property editor also allows to validate whether ranges are disjoint. Validation - * can be turned on/off by using {@link #forceDisjointRanges}. By default + * can be turned on/off by using {@link #setForceDisjointRanges(boolean)}. By default * validation is turned off. * * @author peter.zozom diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsItemReader.java index 2b244bd53..b9372f84a 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsItemReader.java @@ -111,7 +111,7 @@ public class JmsItemReader extends AbstractItemReader implements ItemRecoverer, * Send the message back to the proovider using the specified error * destination property of this provider. * - * @see org.springframework.batch.item.AbstractItemReader#recover(java.lang.Object, + * @see org.springframework.batch.item.ItemRecoverer#recover(Object, * Throwable) */ public boolean recover(Object item, Throwable cause) { @@ -140,7 +140,7 @@ public class JmsItemReader extends AbstractItemReader implements ItemRecoverer, * If the message is a {@link Message} then returns the JMS message ID. * Otherwise just delegate to parent class. * - * @see org.springframework.batch.item.AbstractItemReader#getKey(java.lang.Object) + * @see org.springframework.batch.item.ItemKeyGenerator#getKey(java.lang.Object) * * @throws UnexpectedInputException if the JMS id cannot be determined from * a JMS Message diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/CompositeItemStream.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/CompositeItemStream.java index 68cce88eb..0ff7edf0d 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/CompositeItemStream.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/CompositeItemStream.java @@ -55,7 +55,7 @@ public class CompositeItemStream implements ItemStream { * Simple aggregate {@link ExecutionContext} provider for the contributions * registered under the given key. * - * @see org.springframework.batch.item.stream.StreamManager#getExecutionContext(java.lang.Object) + * @see org.springframework.batch.item.ItemStream#update(ExecutionContext) */ public void update(ExecutionContext executionContext) { synchronized (streams) { @@ -70,8 +70,6 @@ public class CompositeItemStream implements ItemStream { * Register a {@link ItemStream} as one of the interesting providers under * the provided key. * - * @see org.springframework.batch.item.stream.StreamManager#register(java.lang.Object, - * org.springframework.batch.item.ItemStream, ExecutionContext) */ public void register(ItemStream stream) { synchronized (streams) { @@ -82,7 +80,7 @@ public class CompositeItemStream implements ItemStream { } /** - * Broadcast the call to close from this {@link StreamManager}. + * Broadcast the call to close. * @throws ItemStreamException */ public void close(ExecutionContext executionContext) throws ItemStreamException { @@ -95,7 +93,7 @@ public class CompositeItemStream implements ItemStream { } /** - * Broadcast the call to open from this {@link StreamManager}. + * Broadcast the call to open. * @throws ItemStreamException */ public void open(ExecutionContext executionContext) throws ItemStreamException { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/DelegatingItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/DelegatingItemWriter.java index 1cd7c2d47..2323c22ef 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/DelegatingItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/DelegatingItemWriter.java @@ -36,7 +36,7 @@ public class DelegatingItemWriter implements ItemWriter, InitializingBean { * delegate {@link ItemWriter}. * @throws Exception * - * @see ItemWriter#process(java.lang.Object) + * @see ItemWriter#write(Object) */ public void write(Object item) throws Exception { Object result = doProcess(item); diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/transform/ItemTransformerItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/transform/ItemTransformerItemWriter.java index 9ee2456dd..09a39d3d8 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/transform/ItemTransformerItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/transform/ItemTransformerItemWriter.java @@ -15,7 +15,7 @@ public class ItemTransformerItemWriter extends DelegatingItemWriter { private ItemTransformer itemTransformer; /** - * Transform the item using the {@link #itemTransformer}. + * Transform the item using the {@link #setItemTransformer(ItemTransformer)}. */ protected Object doProcess(Object item) throws Exception { return itemTransformer.transform(item); diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/validator/Validator.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/validator/Validator.java index ba1e2bb01..dafcbb98e 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/validator/Validator.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/validator/Validator.java @@ -28,7 +28,7 @@ public interface Validator { * Method used to validate if the value is valid. * * @param value object to be validated - * @throws Exception if value is not valid. + * @throws ValidationException if value is not valid. */ void validate(Object value) throws ValidationException; } diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/StaxEventItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/StaxEventItemReader.java index b710a6fa7..efa510945 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/StaxEventItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/StaxEventItemReader.java @@ -68,7 +68,7 @@ public class StaxEventItemReader extends ExecutionContextUserSupport implements * Read in the next root element from the file, and return it. * * @return the next available record, if none exist, return null - * @see org.springframework.batch.io.ItemReader#read() + * @see org.springframework.batch.item.ItemReader#read() */ public Object read() { if (!initialized) { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/StaxEventItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/StaxEventItemWriter.java index 8c722e44b..f9aab331f 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/StaxEventItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/StaxEventItemWriter.java @@ -207,7 +207,7 @@ public class StaxEventItemWriter extends ExecutionContextUserSupport implements /** * Set "overwrite" flag for the output file. Flag is ignored when output file processing is restarted. * - * @param shouldDeleteIfExists + * @param overwriteOutput */ public void setOverwriteOutput(boolean overwriteOutput) { this.overwriteOutput = overwriteOutput; @@ -225,7 +225,7 @@ public class StaxEventItemWriter extends ExecutionContextUserSupport implements /** * Open the output source * - * @see org.springframework.batch.item.ResourceLifecycle#open() + * @see org.springframework.batch.item.ItemStream#open(ExecutionContext) */ public void open(ExecutionContext executionContext) { long startAtPosition = 0; @@ -334,7 +334,7 @@ public class StaxEventItemWriter extends ExecutionContextUserSupport implements /** * Flush and close the output source. * - * @see org.springframework.batch.item.ResourceLifecycle#close(ExecutionContext) + * @see org.springframework.batch.item.ItemStream#close(ExecutionContext) */ public void close(ExecutionContext executionContext) { flush(); diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/stax/DefaultTransactionalEventReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/stax/DefaultTransactionalEventReader.java index 4c9c83b1a..84543f06a 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/stax/DefaultTransactionalEventReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/stax/DefaultTransactionalEventReader.java @@ -24,7 +24,7 @@ public class DefaultTransactionalEventReader extends AbstractEventReaderWrapper /** * Creates instance of this class and wraps XMLEventReader. * - * @param parent event reader to be wrapped. + * @param wrappedReader event reader to be wrapped. */ public DefaultTransactionalEventReader(XMLEventReader wrappedReader) { super(wrappedReader); diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/stax/EventSequence.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/stax/EventSequence.java index e31e35a31..d1a2bfac9 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/stax/EventSequence.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/xml/stax/EventSequence.java @@ -38,8 +38,6 @@ class EventSequence { /** * Gets next XMLEvent from cache and moves cursor to next event. * If cache contains no more events, null is returned. - * - * @return */ public XMLEvent nextEvent() { return (hasNext()) ? (XMLEvent)events.get(++currentIndex) :null; @@ -48,8 +46,6 @@ class EventSequence { /** * Gets next XMLEvent from cache but cursor remains on the same position. * If cache contains no more events, null is returned. - * - * @return */ public XMLEvent peek() { return (hasNext()) ? (XMLEvent)events.get(currentIndex+1) :null; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/ExitStatus.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/ExitStatus.java index c2afb36e6..626b8a476 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/ExitStatus.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/ExitStatus.java @@ -99,8 +99,6 @@ public class ExitStatus implements Serializable { /** * Getter for the exit description (defaults to blank) - * - * @return */ public String getExitDescription() { return exitDescription; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/callback/ItemReaderRepeatCallback.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/callback/ItemReaderRepeatCallback.java index 270674eb0..1425ba863 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/callback/ItemReaderRepeatCallback.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/callback/ItemReaderRepeatCallback.java @@ -54,7 +54,7 @@ public class ItemReaderRepeatCallback implements RepeatCallback { /** * Use the writer to process the next item if there is one. Return the * item processed, or null if nothing was available. - * @see org.springframework.batch.repeat.RepeatCallback#doInIteration(org.springframework.batch.item.BatchContextAdapter) + * @see org.springframework.batch.repeat.RepeatCallback#doInIteration(RepeatContext) * @param context the current context. * @return null if the data provider is exhausted. */ diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/callback/NestedRepeatCallback.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/callback/NestedRepeatCallback.java index 7c988bd52..69265fbc0 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/callback/NestedRepeatCallback.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/callback/NestedRepeatCallback.java @@ -53,7 +53,7 @@ public class NestedRepeatCallback implements RepeatCallback { * batch process, or to break a process up into smaller chunks (e.g. to * change the transaction boundaries). * - * @see org.springframework.batch.repeat.RepeatCallback#doInIteration(org.springframework.batch.support.BatchContextAdapter) + * @see org.springframework.batch.repeat.RepeatCallback#doInIteration(RepeatContext) */ public ExitStatus doInIteration(RepeatContext context) throws Exception { return template.iterate(callback); diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/context/RepeatContextCounter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/context/RepeatContextCounter.java index bdc2e2d9e..9f93ce5bb 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/context/RepeatContextCounter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/context/RepeatContextCounter.java @@ -59,7 +59,7 @@ public class RepeatContextCounter { } /** - * Convenience constructor with {@link #useParent}=false. + * Convenience constructor with useParent=false. * @param context the current context. * @param countKey the key to use to store the counter in the context. */ diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/LogOrRethrowExceptionHandler.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/LogOrRethrowExceptionHandler.java index d56bfa955..0770f184d 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/LogOrRethrowExceptionHandler.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/LogOrRethrowExceptionHandler.java @@ -64,7 +64,7 @@ public class LogOrRethrowExceptionHandler implements ExceptionHandler { /** * Setter for the {@link ExceptionClassifier} used by this handler. The default is to map all throwable instances to - * {@value #RETHROW}. + * {@link #RETHROW}. * * @param exceptionClassifier */ @@ -77,7 +77,7 @@ public class LogOrRethrowExceptionHandler implements ExceptionHandler { * * @throws Throwable * - * @see {@link ExceptionHandler#handleException(RepeatContext, Throwable)} + * @see ExceptionHandler#handleException(RepeatContext, Throwable) */ public void handleException(RepeatContext context, Throwable throwable) throws Throwable { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/RethrowOnThresholdExceptionHandler.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/RethrowOnThresholdExceptionHandler.java index 882ca3f78..b7776a134 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/RethrowOnThresholdExceptionHandler.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/RethrowOnThresholdExceptionHandler.java @@ -97,7 +97,7 @@ public class RethrowOnThresholdExceptionHandler implements ExceptionHandler { /** * Setter for the {@link ExceptionClassifier} used by this handler. The * default is to map all throwable instances to - * {@value ExceptionClassifierSupport#DEFAULT}, which are then mapped to a + * {@link ExceptionClassifierSupport#DEFAULT}, which are then mapped to a * threshold of 0 by the {@link #setThresholds(Map)} map. * * @param exceptionClassifier @@ -112,7 +112,7 @@ public class RethrowOnThresholdExceptionHandler implements ExceptionHandler { * same type according to the classifier. * * @throws Throwable - * @see {@link ExceptionHandler#handleException(RepeatContext, Throwable)} + * @see ExceptionHandler#handleException(RepeatContext, Throwable) */ public void handleException(RepeatContext context, Throwable throwable) throws Throwable { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/SimpleLimitExceptionHandler.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/SimpleLimitExceptionHandler.java index 79985c403..8a297f991 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/SimpleLimitExceptionHandler.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/SimpleLimitExceptionHandler.java @@ -99,7 +99,7 @@ public class SimpleLimitExceptionHandler implements ExceptionHandler { * Rethrows only if the limit is breached for this context on the exception * type specified. * - * @see #setType(Class) + * @see #setExceptionClasses(Class[]) * @see #setLimit(int) * * @see org.springframework.batch.repeat.exception.ExceptionHandler#handleException(org.springframework.batch.repeat.RepeatContext, @@ -138,7 +138,7 @@ public class SimpleLimitExceptionHandler implements ExceptionHandler { /** * Setter for the Throwable exceptionClasses that shouldn't be counted, but * rethrown immediately. This list has higher priority than - * {@link #exceptionClasses}. + * {@link #setExceptionClasses(Class[])}. * * @param fatalExceptionClasses defaults to {@link Error} */ diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/listener/CompositeRepeatListener.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/listener/CompositeRepeatListener.java index 58a16d420..29e087b3e 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/listener/CompositeRepeatListener.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/listener/CompositeRepeatListener.java @@ -44,7 +44,7 @@ public class CompositeRepeatListener implements RepeatListener { /** * Register additional listener. * - * @param itemReaderListener + * @param listener */ public void register(RepeatListener listener) { if (!listeners.contains(listener)) { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/CountingCompletionPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/CountingCompletionPolicy.java index feb4fa46a..1550118e1 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/CountingCompletionPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/CountingCompletionPolicy.java @@ -78,7 +78,7 @@ public abstract class CountingCompletionPolicy extends DefaultResultCompletionPo /** * Extension point for subclasses. Inspect the context and update the state * of a counter in whatever way is appropriate. This will be added to the - * session-level counter if {@link #useParent} is true. + * session-level counter if {@link #setUseParent(boolean)} is true. * * @param context the current context. * diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/SimpleCompletionPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/SimpleCompletionPolicy.java index ef418dfaf..aeec5dd36 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/SimpleCompletionPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/SimpleCompletionPolicy.java @@ -64,7 +64,7 @@ public class SimpleCompletionPolicy extends DefaultResultCompletionPolicy { * * @see org.springframework.batch.repeat.CompletionPolicy#isComplete(RepeatContext, * ExitStatus) - * @throws Exception (normally terminating the batch) if the result is + * @throws RuntimeException (normally terminating the batch) if the result is * itself an exception. */ public boolean isComplete(RepeatContext context, ExitStatus result) { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/RepeatTemplate.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/RepeatTemplate.java index 54dc47f90..a8313bee1 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/RepeatTemplate.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/RepeatTemplate.java @@ -337,7 +337,7 @@ public class RepeatTemplate implements RepeatOperations { * @param state maintained by the implementation. * @return a finished result. * - * @see {@link #isComplete(RepeatContext)} + * @see #isComplete(RepeatContext) */ protected ExitStatus getNextResult(RepeatContext context, RepeatCallback callback, RepeatInternalState state) throws Throwable { @@ -355,7 +355,7 @@ public class RepeatTemplate implements RepeatOperations { * processes. By default does nothing and returns true. * * @param state the internal state. - * @return true if {@link #canContinue(Object)} is true for all results + * @return true if {@link #canContinue(ExitStatus)} is true for all results * retrieved. */ protected boolean waitForResults(RepeatInternalState state) { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolder.java index e4421d6da..b6ee836fa 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolder.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolder.java @@ -4,10 +4,7 @@ import org.springframework.batch.repeat.ExitStatus; import org.springframework.batch.repeat.RepeatContext; /** - * Interface for result holder. Should be implemented by subclasses so that - * the contract for - * {@link AbstracBatchemplate#getNextResult(RepeatContext, RepeatCallback, TerminationContext, List)} - * can be satisfied. + * Interface for result holder. * * @author Dave Syer */ diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/TaskExecutorRepeatTemplate.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/TaskExecutorRepeatTemplate.java index cafef0a11..08964c058 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/TaskExecutorRepeatTemplate.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/TaskExecutorRepeatTemplate.java @@ -16,8 +16,6 @@ package org.springframework.batch.repeat.support; -import java.util.List; - import org.springframework.batch.repeat.ExitStatus; import org.springframework.batch.repeat.RepeatCallback; import org.springframework.batch.repeat.RepeatContext; @@ -52,7 +50,7 @@ public class TaskExecutorRepeatTemplate extends RepeatTemplate { /** * Default limit for maximum number of concurrent unfinished results allowed * by the template. - * {@link #getNextResult(RepeatContext, RepeatCallback, TerminationContext, List)}. + * {@link #getNextResult(RepeatContext, RepeatCallback, RepeatInternalState)}. */ public static final int DEFAULT_THROTTLE_LIMIT = 4; @@ -72,15 +70,12 @@ public class TaskExecutorRepeatTemplate extends RepeatTemplate { } /** - * Use the {@link #taskExecutor} to generate a result. The internal state in + * Use the {@link #setTaskExecutor(TaskExecutor)} to generate a result. The internal state in * this case is a queue of unfinished result holders of type * {@link ResultHolder}. The holder with the return value should not be on * the queue when this method exits. The queue is scoped in the calling * method so there is no need to synchronize access. * - * @see org.springframework.batch.repeat.support.AbstracBatchemplate#getNextResult(org.springframework.batch.item.RepeatContext, - * org.springframework.batch.repeat.RepeatCallback, - * org.springframework.batch.TerminationContext, java.util.List) */ protected ExitStatus getNextResult(RepeatContext context, RepeatCallback callback, RepeatInternalState state) throws Throwable { @@ -257,7 +252,7 @@ public class TaskExecutorRepeatTemplate extends RepeatTemplate { * number of concurrent tasks that can be executing at one time - if a new * task arrives and the throttle limit is breached we wait for one of the * executing tasks to finish before submitting the new one to the - * {@link TaskExecutor}. Default value is {@value #DEFAULT_THROTTLE_LIMIT}. + * {@link TaskExecutor}. Default value is {@link #DEFAULT_THROTTLE_LIMIT}. * N.B. when used with a thread pooled {@link TaskExecutor} it doesn't make * sense for the throttle limit to be less than the thread pool size. * diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/RetryPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/RetryPolicy.java index 3b12930e4..bc5b0419f 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/RetryPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/RetryPolicy.java @@ -57,7 +57,7 @@ public interface RetryPolicy { RetryContext open(RetryCallback callback, RetryContext parent); /** - * @param status a retry status created by the {@link #open(RetryCallback, RetryContext)} + * @param context a retry status created by the {@link #open(RetryCallback, RetryContext)} * method of this manager. */ void close(RetryContext context); diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/BackOffInterruptedException.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/BackOffInterruptedException.java index b52977821..7b43d1d24 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/BackOffInterruptedException.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/BackOffInterruptedException.java @@ -21,7 +21,7 @@ import org.springframework.batch.retry.RetryException; /** * Exception class signifiying that an attempt to back off using a * {@link BackOffPolicy} was interrupted, most likely by an - * {@link InterruptedException} during a call to {@link Thread#sleep}. + * {@link InterruptedException} during a call to {@link Thread#sleep(long)}. * * @author Rob Harrop * @since 2.1 diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/ExponentialBackOffPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/ExponentialBackOffPolicy.java index 12e73d69b..443a62218 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/ExponentialBackOffPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/ExponentialBackOffPolicy.java @@ -21,13 +21,13 @@ import org.springframework.util.ClassUtils; /** * Implementation of {@link BackOffPolicy} that increases the back off period - * for each retry attempt in a given set using the {@link Math#exp exponential} - * function.
This implementation is thread-safe and suitable for concurrent - * access. Modifications to the configuration do not affect any retry sets that - * are already in progress. The {@link #setExpSeed expSeed} property - * controls the initial value passed to {@link Math#exp} and the - * {@link #setIncrement increment} property controls by how much this value is - * increased for each subsequent attempt. + * for each retry attempt in a given set using the + * {@link Math#exp(double) exponential} function. This implementation is + * thread-safe and suitable for concurrent access. Modifications to the + * configuration do not affect any retry sets that are already in progress. + * The {@link #setInitialInterval(long)} property controls the initial value passed to + * {@link Math#exp(double)} and the {@link #setMultiplier(double)} property controls by + * how much this value is increased for each subsequent attempt. * * @author Rob Harrop * @author Dave Syer @@ -103,7 +103,7 @@ public class ExponentialBackOffPolicy implements BackOffPolicy { } /** - * Returns a new instance of {@link ExponentialBackOffContext} configured + * Returns a new instance of {@link BackOffContext} configured * with the 'expSeed' and 'increment' values. */ public BackOffContext start(RetryContext context) { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/FixedBackOffPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/FixedBackOffPolicy.java index efc313c0a..c65d581e1 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/FixedBackOffPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/backoff/FixedBackOffPolicy.java @@ -19,8 +19,8 @@ package org.springframework.batch.retry.backoff; /** * Implementation of {@link BackOffPolicy} that pauses for a fixed period of - * time before continuing. A pause is implemented using {@link Thread#sleep}. - * {@link #backOff} is thread-safe and it is safe to call + * time before continuing. A pause is implemented using {@link Thread#sleep(long)}. + * {@link #setBackOffPeriod(long)} is thread-safe and it is safe to call * {@link #setBackOffPeriod} during execution from multiple threads, however * this may cause a single retry operation to have pauses of different * intervals. @@ -59,7 +59,7 @@ public class FixedBackOffPolicy extends StatelessBackOffPolicy { } /** - * Pause for the {@link #backOffPeriod}. + * Pause for the {@link #setBackOffPeriod(long)}. * @throws BackOffInterruptedException if interrupted during sleep. */ protected void doBackOff() throws BackOffInterruptedException { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/callback/ItemWriterRetryCallback.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/callback/ItemWriterRetryCallback.java index 0fe8044e0..a64709d07 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/callback/ItemWriterRetryCallback.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/callback/ItemWriterRetryCallback.java @@ -74,7 +74,7 @@ public class ItemWriterRetryCallback implements RetryCallback { * be used instead (preferring the reader to the writer if both would be * appropriate). * - * @param recoveryHandler + * @param recoverer */ public void setRecoverer(ItemRecoverer recoverer) { this.recoverer = recoverer; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/ItemWriterRetryPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/ItemWriterRetryPolicy.java index 273df78e7..2f11d3335 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/ItemWriterRetryPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/ItemWriterRetryPolicy.java @@ -245,7 +245,6 @@ public class ItemWriterRetryPolicy extends AbstractStatefulRetryPolicy { * * @param failedItemIdentifier * @param key - * @return */ protected boolean hasFailed(FailedItemIdentifier failedItemIdentifier, Object key) { if (failedItemIdentifier != null) { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/SimpleRetryPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/SimpleRetryPolicy.java index ac02ee4a5..27a66ba12 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/SimpleRetryPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/SimpleRetryPolicy.java @@ -16,7 +16,6 @@ package org.springframework.batch.retry.policy; -import org.springframework.batch.repeat.RepeatContext; import org.springframework.batch.retry.RetryCallback; import org.springframework.batch.retry.RetryContext; import org.springframework.batch.retry.context.RetryContextSupport; @@ -113,14 +112,14 @@ public class SimpleRetryPolicy extends AbstractStatelessRetryPolicy { * thereof, will be re-thrown without retry. This list takes precedence over * the retryable list. * - * @param retryableExceptionClasses defaults to {@link Exception}. + * @param fatalExceptionClasses defaults to {@link Exception}. */ public final void setFatalExceptionClasses(Class[] fatalExceptionClasses) { fatalClassifier.setExceptionClasses(fatalExceptionClasses); } /** - * @see org.springframework.batch.retry.RetryManager#close(RepeatContext) + * @see org.springframework.batch.retry.RetryPolicy#close(RetryContext) */ public void close(RetryContext status) { } diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/TimeoutRetryPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/TimeoutRetryPolicy.java index 8d3df6cb0..41641cd90 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/TimeoutRetryPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/policy/TimeoutRetryPolicy.java @@ -39,7 +39,7 @@ public class TimeoutRetryPolicy extends AbstractStatelessRetryPolicy { private long timeout = DEFAULT_TIMEOUT; /** - * Setter for timeout. Default is {@value #DEFAULT_TIMEOUT}. + * Setter for timeout. Default is {@link #DEFAULT_TIMEOUT}. * @param timeout */ public void setTimeout(long timeout) { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetrySynchronizationManager.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetrySynchronizationManager.java index b17a5779b..b1fa95642 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetrySynchronizationManager.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetrySynchronizationManager.java @@ -16,7 +16,6 @@ package org.springframework.batch.retry.support; -import org.springframework.batch.repeat.RepeatContext; import org.springframework.batch.repeat.RepeatOperations; import org.springframework.batch.retry.RetryCallback; import org.springframework.batch.retry.RetryContext; @@ -29,7 +28,7 @@ import org.springframework.batch.retry.RetryOperations; * enclosing {@link RetryOperations}. But occasionally it might be helpful to * have lower level access to the ongoing {@link RetryContext} so we provide a * global accessor here. The mutator methods ({@link #clear()} and - * {@link #register(RepeatContext)} should not be used except internally by + * {@link #register(RetryContext)} should not be used except internally by * {@link RetryOperations} implementations. * * @author Dave Syer diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetryTemplate.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetryTemplate.java index fa9491230..2064d94e0 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetryTemplate.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetryTemplate.java @@ -43,13 +43,12 @@ import org.springframework.batch.retry.policy.SimpleRetryPolicy; * * By default, an operation is retried if is throws any {@link Exception} or * subclass of {@link Exception}. This behaviour can be changed by using the - * {@link #setRetryableExceptionClasses} method to specify exactly which - * {@link Exception} classes to retry for.