diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ItemOrientedStepIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ItemOrientedStepIntegrationTests.java index c404d16bd..e0c13cfef 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ItemOrientedStepIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ItemOrientedStepIntegrationTests.java @@ -33,9 +33,9 @@ import org.springframework.batch.core.repository.dao.MapJobExecutionDao; import org.springframework.batch.core.repository.dao.MapJobInstanceDao; import org.springframework.batch.core.repository.dao.MapStepExecutionDao; import org.springframework.batch.core.repository.support.JobRepositoryFactoryBean; -import org.springframework.batch.item.AbstractItemWriter; import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.ItemReader; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.item.support.ListItemReader; import org.springframework.batch.repeat.policy.SimpleCompletionPolicy; import org.springframework.batch.repeat.support.RepeatTemplate; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ItemOrientedStepTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ItemOrientedStepTests.java index 5b315db84..ac20e5cb8 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ItemOrientedStepTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/ItemOrientedStepTests.java @@ -41,8 +41,6 @@ import org.springframework.batch.core.repository.support.SimpleJobRepository; import org.springframework.batch.core.step.AbstractStep; import org.springframework.batch.core.step.JobRepositorySupport; import org.springframework.batch.core.step.StepInterruptionPolicy; -import org.springframework.batch.item.AbstractItemReader; -import org.springframework.batch.item.AbstractItemWriter; import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemStream; @@ -51,6 +49,8 @@ import org.springframework.batch.item.ItemStreamSupport; import org.springframework.batch.item.ItemWriter; import org.springframework.batch.item.MarkFailedException; import org.springframework.batch.item.ResetFailedException; +import org.springframework.batch.item.support.AbstractItemReader; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.item.support.ListItemReader; import org.springframework.batch.repeat.ExitStatus; import org.springframework.batch.repeat.policy.DefaultResultCompletionPolicy; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/SimpleStepFactoryBeanTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/SimpleStepFactoryBeanTests.java index 8ea9c10c0..50032ddbd 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/SimpleStepFactoryBeanTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/SimpleStepFactoryBeanTests.java @@ -36,9 +36,9 @@ import org.springframework.batch.core.repository.dao.MapJobInstanceDao; import org.springframework.batch.core.repository.dao.MapStepExecutionDao; import org.springframework.batch.core.repository.support.SimpleJobRepository; import org.springframework.batch.core.step.AbstractStep; -import org.springframework.batch.item.AbstractItemWriter; import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.item.support.ListItemReader; import org.springframework.batch.repeat.RepeatContext; import org.springframework.batch.repeat.exception.ExceptionHandler; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/StatefulRetryStepFactoryBeanTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/StatefulRetryStepFactoryBeanTests.java index 1ed0f76f3..0d476302c 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/StatefulRetryStepFactoryBeanTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/StatefulRetryStepFactoryBeanTests.java @@ -38,10 +38,10 @@ import org.springframework.batch.core.repository.dao.MapStepExecutionDao; import org.springframework.batch.core.repository.support.SimpleJobRepository; import org.springframework.batch.core.step.AbstractStep; import org.springframework.batch.core.step.skip.SkipLimitExceededException; -import org.springframework.batch.item.AbstractItemReader; -import org.springframework.batch.item.AbstractItemWriter; import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemWriter; +import org.springframework.batch.item.support.AbstractItemReader; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.item.support.ListItemReader; import org.springframework.batch.retry.RetryException; import org.springframework.batch.retry.policy.RetryCacheCapacityExceededException; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/StepExecutorInterruptionTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/StepExecutorInterruptionTests.java index 9c4f0e3b9..495589de3 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/StepExecutorInterruptionTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/StepExecutorInterruptionTests.java @@ -32,8 +32,8 @@ import org.springframework.batch.core.repository.support.SimpleJobRepository; import org.springframework.batch.core.step.StepExecutionSynchronizer; import org.springframework.batch.core.step.item.ItemOrientedStep; import org.springframework.batch.core.step.item.SimpleItemHandler; -import org.springframework.batch.item.AbstractItemReader; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemReader; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.repeat.policy.SimpleCompletionPolicy; import org.springframework.batch.repeat.support.RepeatTemplate; import org.springframework.batch.support.transaction.ResourcelessTransactionManager; diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/jms/ExternalRetryInBatchTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/jms/ExternalRetryInBatchTests.java index 1463c00e1..a01af22ba 100644 --- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/jms/ExternalRetryInBatchTests.java +++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/jms/ExternalRetryInBatchTests.java @@ -21,8 +21,8 @@ import java.util.List; import javax.sql.DataSource; -import org.springframework.batch.item.AbstractItemReader; import org.springframework.batch.item.ItemRecoverer; +import org.springframework.batch.item.support.AbstractItemReader; import org.springframework.batch.repeat.ExitStatus; import org.springframework.batch.repeat.RepeatCallback; import org.springframework.batch.repeat.RepeatContext; diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/retry/jms/ExternalRetryTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/retry/jms/ExternalRetryTests.java index d6eb46d8b..e6c2aed34 100644 --- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/retry/jms/ExternalRetryTests.java +++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/retry/jms/ExternalRetryTests.java @@ -21,9 +21,9 @@ import java.util.List; import javax.sql.DataSource; -import org.springframework.batch.item.AbstractItemReader; -import org.springframework.batch.item.AbstractItemWriter; import org.springframework.batch.item.ItemRecoverer; +import org.springframework.batch.item.support.AbstractItemReader; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.jms.ExternalRetryInBatchTests; import org.springframework.batch.retry.RecoveryCallback; import org.springframework.batch.retry.RetryCallback; 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 f6f8ddc52..782feaef5 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 @@ -21,9 +21,9 @@ import org.hibernate.ScrollableResults; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.StatelessSession; -import org.springframework.batch.item.AbstractBufferedItemReaderItemStream; import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemStream; +import org.springframework.batch.item.support.AbstractBufferedItemReaderItemStream; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; import org.springframework.util.ClassUtils; 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 eef538ae9..328bf7f9f 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 @@ -27,9 +27,9 @@ import javax.sql.DataSource; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.batch.item.AbstractBufferedItemReaderItemStream; import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.ItemStream; +import org.springframework.batch.item.support.AbstractBufferedItemReaderItemStream; import org.springframework.beans.factory.InitializingBean; import org.springframework.dao.InvalidDataAccessResourceUsageException; import org.springframework.jdbc.SQLWarningException; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/IbatisKeyCollector.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/IbatisKeyCollector.java index e2b4e7b80..7597efc55 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/IbatisKeyCollector.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/IbatisKeyCollector.java @@ -3,9 +3,9 @@ package org.springframework.batch.item.database.support; import java.util.List; import org.springframework.batch.item.ExecutionContext; -import org.springframework.batch.item.ExecutionContextUserSupport; import org.springframework.batch.item.database.DrivingQueryItemReader; import org.springframework.batch.item.database.KeyCollector; +import org.springframework.batch.item.util.ExecutionContextUserSupport; import org.springframework.orm.ibatis.SqlMapClientTemplate; import org.springframework.util.Assert; import org.springframework.util.ClassUtils; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/MultipleColumnJdbcKeyCollector.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/MultipleColumnJdbcKeyCollector.java index a55e5984b..81c536833 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/MultipleColumnJdbcKeyCollector.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/MultipleColumnJdbcKeyCollector.java @@ -20,10 +20,10 @@ import java.sql.SQLException; import java.util.List; import org.springframework.batch.item.ExecutionContext; -import org.springframework.batch.item.ExecutionContextUserSupport; import org.springframework.batch.item.database.DrivingQueryItemReader; import org.springframework.batch.item.database.ItemPreparedStatementSetter; import org.springframework.batch.item.database.KeyCollector; +import org.springframework.batch.item.util.ExecutionContextUserSupport; import org.springframework.jdbc.core.ColumnMapRowMapper; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.PreparedStatementSetter; 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 d2bc8c2b2..58f390d56 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 @@ -18,8 +18,8 @@ package org.springframework.batch.item.database.support; import java.util.List; import org.springframework.batch.item.ExecutionContext; -import org.springframework.batch.item.ExecutionContextUserSupport; import org.springframework.batch.item.database.KeyCollector; +import org.springframework.batch.item.util.ExecutionContextUserSupport; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.SingleColumnRowMapper; 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 fc9be6228..ac7e83f80 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 @@ -18,12 +18,10 @@ package org.springframework.batch.item.file; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.batch.item.AbstractBufferedItemReaderItemStream; import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemReaderException; import org.springframework.batch.item.ItemStreamException; import org.springframework.batch.item.ReaderNotOpenException; -import org.springframework.batch.item.ResourceAwareItemReaderItemStream; import org.springframework.batch.item.file.mapping.FieldSet; import org.springframework.batch.item.file.mapping.FieldSetMapper; import org.springframework.batch.item.file.separator.LineReader; @@ -32,6 +30,7 @@ import org.springframework.batch.item.file.separator.ResourceLineReader; import org.springframework.batch.item.file.transform.AbstractLineTokenizer; import org.springframework.batch.item.file.transform.DelimitedLineTokenizer; import org.springframework.batch.item.file.transform.LineTokenizer; +import org.springframework.batch.item.support.AbstractBufferedItemReaderItemStream; import org.springframework.beans.factory.InitializingBean; import org.springframework.core.io.Resource; import org.springframework.util.Assert; 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 3bb686aca..98deeb6eb 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 @@ -30,7 +30,6 @@ import java.util.List; import org.springframework.batch.item.ClearFailedException; import org.springframework.batch.item.ExecutionContext; -import org.springframework.batch.item.ExecutionContextUserSupport; import org.springframework.batch.item.FlushFailedException; import org.springframework.batch.item.ItemStream; import org.springframework.batch.item.ItemStreamException; @@ -41,6 +40,7 @@ import org.springframework.batch.item.file.mapping.FieldSet; import org.springframework.batch.item.file.mapping.FieldSetCreator; import org.springframework.batch.item.file.transform.DelimitedLineAggregator; import org.springframework.batch.item.file.transform.LineAggregator; +import org.springframework.batch.item.util.ExecutionContextUserSupport; import org.springframework.batch.item.util.FileUtils; import org.springframework.beans.factory.InitializingBean; import org.springframework.core.io.Resource; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/MultiResourceItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemReader.java similarity index 88% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/MultiResourceItemReader.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemReader.java index 347cbe712..7be9a4b72 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/MultiResourceItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemReader.java @@ -1,9 +1,19 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.file; import java.util.ArrayList; import java.util.List; import java.util.ListIterator; +import org.springframework.batch.item.ExecutionContext; +import org.springframework.batch.item.ItemReader; +import org.springframework.batch.item.ItemStream; +import org.springframework.batch.item.ItemStreamException; +import org.springframework.batch.item.MarkFailedException; +import org.springframework.batch.item.NoWorkFoundException; +import org.springframework.batch.item.ParseException; +import org.springframework.batch.item.ResetFailedException; +import org.springframework.batch.item.UnexpectedInputException; +import org.springframework.batch.item.util.ExecutionContextUserSupport; import org.springframework.beans.factory.InitializingBean; import org.springframework.core.io.Resource; import org.springframework.util.Assert; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ResourceAwareItemReaderItemStream.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/ResourceAwareItemReaderItemStream.java similarity index 66% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ResourceAwareItemReaderItemStream.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/ResourceAwareItemReaderItemStream.java index a18211b44..d50884da0 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ResourceAwareItemReaderItemStream.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/ResourceAwareItemReaderItemStream.java @@ -1,5 +1,7 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.file; +import org.springframework.batch.item.ItemReader; +import org.springframework.batch.item.ItemStream; import org.springframework.core.io.Resource; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/SortedMultiResourceItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/SortedMultiResourceItemReader.java similarity index 93% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/SortedMultiResourceItemReader.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/SortedMultiResourceItemReader.java index d88211103..54b8c0e8c 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/SortedMultiResourceItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/SortedMultiResourceItemReader.java @@ -1,4 +1,4 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.file; import java.util.Arrays; import java.util.Comparator; 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 e8b2f6f8e..43a21bbc6 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 @@ -22,12 +22,12 @@ import javax.jms.Message; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.batch.item.AbstractItemReader; import org.springframework.batch.item.NewItemIdentifier; import org.springframework.batch.item.ItemKeyGenerator; import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemRecoverer; import org.springframework.batch.item.UnexpectedInputException; +import org.springframework.batch.item.support.AbstractItemReader; import org.springframework.jms.JmsException; import org.springframework.jms.core.JmsOperations; import org.springframework.jms.core.JmsTemplate; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractBufferedItemReaderItemStream.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractBufferedItemReaderItemStream.java similarity index 83% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractBufferedItemReaderItemStream.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractBufferedItemReaderItemStream.java index a536f62b5..b58fc4610 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractBufferedItemReaderItemStream.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractBufferedItemReaderItemStream.java @@ -1,9 +1,19 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.support; import java.util.ArrayList; import java.util.List; import java.util.ListIterator; +import org.springframework.batch.item.ExecutionContext; +import org.springframework.batch.item.ItemReader; +import org.springframework.batch.item.ItemStream; +import org.springframework.batch.item.ItemStreamException; +import org.springframework.batch.item.MarkFailedException; +import org.springframework.batch.item.NoWorkFoundException; +import org.springframework.batch.item.ParseException; +import org.springframework.batch.item.ResetFailedException; +import org.springframework.batch.item.UnexpectedInputException; +import org.springframework.batch.item.util.ExecutionContextUserSupport; import org.springframework.util.Assert; /** @@ -91,7 +101,7 @@ public abstract class AbstractBufferedItemReaderItemStream implements ItemReader * counter, keeping track of the current position, so multiple threads * cannot be accommodated. * - * @see org.springframework.batch.item.AbstractItemReader#mark() + * @see org.springframework.batch.item.support.AbstractItemReader#mark() */ public void mark() throws MarkFailedException { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemReader.java similarity index 80% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemReader.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemReader.java index a005b7427..9b0bccb77 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemReader.java @@ -14,7 +14,11 @@ * limitations under the License. */ -package org.springframework.batch.item; +package org.springframework.batch.item.support; + +import org.springframework.batch.item.ItemReader; +import org.springframework.batch.item.MarkFailedException; +import org.springframework.batch.item.ResetFailedException; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemStreamItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemStreamItemReader.java similarity index 83% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemStreamItemReader.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemStreamItemReader.java index abcc719cb..e0509476b 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemStreamItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemStreamItemReader.java @@ -14,7 +14,10 @@ * limitations under the License. */ -package org.springframework.batch.item; +package org.springframework.batch.item.support; + +import org.springframework.batch.item.ItemReader; +import org.springframework.batch.item.ItemStreamSupport; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemStreamItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemStreamItemWriter.java similarity index 83% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemStreamItemWriter.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemStreamItemWriter.java index feeaf4a31..c2905224a 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemStreamItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemStreamItemWriter.java @@ -14,7 +14,10 @@ * limitations under the License. */ -package org.springframework.batch.item; +package org.springframework.batch.item.support; + +import org.springframework.batch.item.ItemStreamSupport; +import org.springframework.batch.item.ItemWriter; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemWriter.java similarity index 81% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemWriter.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemWriter.java index e7bc126f1..06d571da7 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/AbstractItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/AbstractItemWriter.java @@ -13,7 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.batch.item; +package org.springframework.batch.item.support; + +import org.springframework.batch.item.ClearFailedException; +import org.springframework.batch.item.FlushFailedException; +import org.springframework.batch.item.ItemWriter; /** * Abstract {@link ItemWriter} that allows for base classes to only implement diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/DelegatingItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/DelegatingItemReader.java index 6b5d92c51..fea258dc9 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/DelegatingItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/DelegatingItemReader.java @@ -16,7 +16,6 @@ package org.springframework.batch.item.support; -import org.springframework.batch.item.AbstractItemReader; import org.springframework.batch.item.ItemReader; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/ListItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/ListItemReader.java index 20120e795..820606e7b 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/ListItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/ListItemReader.java @@ -20,7 +20,6 @@ import java.util.ArrayList; import java.util.List; import org.springframework.aop.support.AopUtils; -import org.springframework.batch.item.AbstractItemReader; import org.springframework.batch.item.ItemReader; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ExecutionContextUserSupport.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/util/ExecutionContextUserSupport.java similarity index 93% rename from spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ExecutionContextUserSupport.java rename to spring-batch-infrastructure/src/main/java/org/springframework/batch/item/util/ExecutionContextUserSupport.java index bbc6dd649..fbe4d81cc 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ExecutionContextUserSupport.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/util/ExecutionContextUserSupport.java @@ -13,8 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.batch.item; +package org.springframework.batch.item.util; +import org.springframework.batch.item.ExecutionContext; import org.springframework.util.Assert; /** 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 603caf077..58510eaf3 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 @@ -8,8 +8,8 @@ import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamException; import javax.xml.stream.events.StartElement; -import org.springframework.batch.item.AbstractBufferedItemReaderItemStream; -import org.springframework.batch.item.ResourceAwareItemReaderItemStream; +import org.springframework.batch.item.file.ResourceAwareItemReaderItemStream; +import org.springframework.batch.item.support.AbstractBufferedItemReaderItemStream; import org.springframework.batch.item.xml.stax.DefaultFragmentEventReader; import org.springframework.batch.item.xml.stax.FragmentEventReader; import org.springframework.beans.factory.InitializingBean; 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 2b17f5696..47d184733 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 @@ -18,10 +18,10 @@ import javax.xml.stream.XMLStreamException; import org.springframework.batch.item.ClearFailedException; import org.springframework.batch.item.ExecutionContext; -import org.springframework.batch.item.ExecutionContextUserSupport; import org.springframework.batch.item.FlushFailedException; import org.springframework.batch.item.ItemStream; import org.springframework.batch.item.ItemWriter; +import org.springframework.batch.item.util.ExecutionContextUserSupport; import org.springframework.batch.item.util.FileUtils; import org.springframework.batch.item.xml.stax.NoStartEndDocumentStreamWriter; import org.springframework.beans.factory.InitializingBean; 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 2b19e8164..6d3c225c0 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 @@ -32,9 +32,9 @@ public class ExitStatus implements Serializable { /** * Convenient constant value representing unknown state - assumed - * continuable. + * not continuable. */ - public static final ExitStatus UNKNOWN = new ExitStatus(true, "UNKNOWN"); + public static final ExitStatus UNKNOWN = new ExitStatus(false, "UNKNOWN"); /** * Convenient constant value representing unfinished processing. diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/ItemProviderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/ItemProviderTests.java index cb6597cd0..5621aa955 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/ItemProviderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/ItemProviderTests.java @@ -16,6 +16,8 @@ package org.springframework.batch.item; +import org.springframework.batch.item.support.AbstractItemReader; + import junit.framework.TestCase; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderFlatFileTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderFlatFileTests.java similarity index 85% rename from spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderFlatFileTests.java rename to spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderFlatFileTests.java index 498a56c26..d1e7cab78 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderFlatFileTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderFlatFileTests.java @@ -1,6 +1,8 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.file; -import org.springframework.batch.item.file.FlatFileItemReader; +import org.springframework.batch.item.CommonItemStreamItemReaderTests; +import org.springframework.batch.item.ExecutionContext; +import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.file.mapping.FieldSet; import org.springframework.batch.item.file.mapping.FieldSetMapper; import org.springframework.batch.item.sample.Foo; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderIntegrationTests.java similarity index 93% rename from spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderIntegrationTests.java rename to spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderIntegrationTests.java index 4782bfbb7..67c6033ad 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderIntegrationTests.java @@ -1,8 +1,8 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.file; import junit.framework.TestCase; -import org.springframework.batch.item.file.FlatFileItemReader; +import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.file.mapping.FieldSet; import org.springframework.batch.item.file.mapping.PassThroughFieldSetMapper; import org.springframework.core.io.ByteArrayResource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderXmlTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderXmlTests.java similarity index 88% rename from spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderXmlTests.java rename to spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderXmlTests.java index 2d7460cf2..9023af1b2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/MultiResourceItemReaderXmlTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/MultiResourceItemReaderXmlTests.java @@ -1,10 +1,13 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.file; import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLStreamException; import javax.xml.stream.events.Attribute; import javax.xml.stream.events.StartElement; +import org.springframework.batch.item.CommonItemStreamItemReaderTests; +import org.springframework.batch.item.ExecutionContext; +import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.sample.Foo; import org.springframework.batch.item.xml.EventReaderDeserializer; import org.springframework.batch.item.xml.StaxEventItemReader; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/SortedMultiResourceItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/SortedMultiResourceItemReaderTests.java similarity index 92% rename from spring-batch-infrastructure/src/test/java/org/springframework/batch/item/SortedMultiResourceItemReaderTests.java rename to spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/SortedMultiResourceItemReaderTests.java index e94785f8c..3baa5db4a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/SortedMultiResourceItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/SortedMultiResourceItemReaderTests.java @@ -1,4 +1,4 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.file; import java.util.Comparator; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/DelegatingItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/DelegatingItemReaderTests.java index 85cfa3bff..45869574a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/DelegatingItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/DelegatingItemReaderTests.java @@ -18,7 +18,6 @@ package org.springframework.batch.item.support; import junit.framework.TestCase; -import org.springframework.batch.item.AbstractItemReader; import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemStream; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/ExecutionContextUserSupportTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/util/ExecutionContextUserSupportTests.java similarity index 85% rename from spring-batch-infrastructure/src/test/java/org/springframework/batch/item/ExecutionContextUserSupportTests.java rename to spring-batch-infrastructure/src/test/java/org/springframework/batch/item/util/ExecutionContextUserSupportTests.java index 5229fb98a..5d7ae29af 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/ExecutionContextUserSupportTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/util/ExecutionContextUserSupportTests.java @@ -1,4 +1,6 @@ -package org.springframework.batch.item; +package org.springframework.batch.item.util; + +import org.springframework.batch.item.util.ExecutionContextUserSupport; import junit.framework.TestCase; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/ValidatingItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/ValidatingItemReaderTests.java index 5d0633ae5..750c66d18 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/ValidatingItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/ValidatingItemReaderTests.java @@ -18,8 +18,8 @@ package org.springframework.batch.item.validator; import junit.framework.TestCase; import org.easymock.MockControl; -import org.springframework.batch.item.AbstractItemReader; import org.springframework.batch.item.ItemReader; +import org.springframework.batch.item.support.AbstractItemReader; /** * @author Lucas Ward diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/callback/ItemReaderRepeatCallbackTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/callback/ItemReaderRepeatCallbackTests.java index f641f3bd3..7bff97462 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/callback/ItemReaderRepeatCallbackTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/callback/ItemReaderRepeatCallbackTests.java @@ -22,7 +22,7 @@ import java.util.List; import junit.framework.TestCase; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.item.support.ListItemReader; public class ItemReaderRepeatCallbackTests extends TestCase { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/AbstractTradeBatchTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/AbstractTradeBatchTests.java index 36ab5c9b8..43b4dde10 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/AbstractTradeBatchTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/AbstractTradeBatchTests.java @@ -18,11 +18,11 @@ package org.springframework.batch.repeat.support; import junit.framework.TestCase; -import org.springframework.batch.item.AbstractItemWriter; import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.file.FlatFileItemReader; import org.springframework.batch.item.file.mapping.FieldSet; import org.springframework.batch.item.file.mapping.FieldSetMapper; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/ChunkedRepeatTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/ChunkedRepeatTests.java index 7fb76d582..a692c9903 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/ChunkedRepeatTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/ChunkedRepeatTests.java @@ -16,8 +16,8 @@ package org.springframework.batch.repeat.support; -import org.springframework.batch.item.AbstractItemReader; import org.springframework.batch.item.ItemReader; +import org.springframework.batch.item.support.AbstractItemReader; import org.springframework.batch.repeat.ExitStatus; import org.springframework.batch.repeat.RepeatCallback; import org.springframework.batch.repeat.RepeatContext; diff --git a/spring-batch-integration/src/main/java/org/springframework/batch/integration/item/MessageChannelItemWriter.java b/spring-batch-integration/src/main/java/org/springframework/batch/integration/item/MessageChannelItemWriter.java index d5c860674..dbc7fff1e 100644 --- a/spring-batch-integration/src/main/java/org/springframework/batch/integration/item/MessageChannelItemWriter.java +++ b/spring-batch-integration/src/main/java/org/springframework/batch/integration/item/MessageChannelItemWriter.java @@ -15,7 +15,7 @@ */ package org.springframework.batch.integration.item; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.beans.factory.annotation.Required; import org.springframework.integration.channel.MessageChannel; import org.springframework.integration.message.GenericMessage; diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/ItemWriterChunkHandlerTests.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/ItemWriterChunkHandlerTests.java index 4dfcc73c1..c769ff2eb 100644 --- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/ItemWriterChunkHandlerTests.java +++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/ItemWriterChunkHandlerTests.java @@ -9,7 +9,7 @@ import org.springframework.batch.core.step.skip.AlwaysSkipItemSkipPolicy; import org.springframework.batch.integration.chunk.ChunkRequest; import org.springframework.batch.integration.chunk.ChunkResponse; import org.springframework.batch.integration.chunk.ItemWriterChunkHandler; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.repeat.ExitStatus; import org.springframework.util.StringUtils; diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/TestItemWriter.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/TestItemWriter.java index afc3c2002..850075886 100644 --- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/TestItemWriter.java +++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/TestItemWriter.java @@ -2,7 +2,7 @@ package org.springframework.batch.integration.chunk; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.stereotype.Component; @Component diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerCreditIncreaseWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerCreditIncreaseWriter.java index b10485170..11c23b903 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerCreditIncreaseWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerCreditIncreaseWriter.java @@ -2,7 +2,7 @@ package org.springframework.batch.sample.item.writer; import java.math.BigDecimal; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.sample.dao.CustomerCreditDao; import org.springframework.batch.sample.domain.CustomerCredit; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerCreditUpdateWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerCreditUpdateWriter.java index aeba2c0f6..bf8e0a460 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerCreditUpdateWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerCreditUpdateWriter.java @@ -16,7 +16,7 @@ package org.springframework.batch.sample.item.writer; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.sample.dao.CustomerCreditDao; import org.springframework.batch.sample.domain.CustomerCredit; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerUpdateWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerUpdateWriter.java index d1d461b99..a77711060 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerUpdateWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/CustomerUpdateWriter.java @@ -16,7 +16,7 @@ package org.springframework.batch.sample.item.writer; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.sample.dao.CustomerDebitDao; import org.springframework.batch.sample.dao.JdbcCustomerDebitDao; import org.springframework.batch.sample.domain.CustomerDebit; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/DummyItemWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/DummyItemWriter.java index 2c38784b7..4f51b0e74 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/DummyItemWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/DummyItemWriter.java @@ -15,7 +15,7 @@ */ package org.springframework.batch.sample.item.writer; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; /** * @author Dave Syer diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/ItemTrackingItemWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/ItemTrackingItemWriter.java index 48e9045a3..a72f515e7 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/ItemTrackingItemWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/ItemTrackingItemWriter.java @@ -3,7 +3,7 @@ package org.springframework.batch.sample.item.writer; import java.util.ArrayList; import java.util.List; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.item.validator.ValidationException; /** diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/PersonWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/PersonWriter.java index 1bf1166cc..8748e5a95 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/PersonWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/PersonWriter.java @@ -18,7 +18,7 @@ package org.springframework.batch.sample.item.writer; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.sample.domain.Person; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/PlayerItemWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/PlayerItemWriter.java index 1e2a0f3b5..ab432d685 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/PlayerItemWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/PlayerItemWriter.java @@ -1,6 +1,6 @@ package org.springframework.batch.sample.item.writer; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.sample.dao.PlayerDao; import org.springframework.batch.sample.domain.Player; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/RetrySampleItemWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/RetrySampleItemWriter.java index ddfb51e80..907c61f71 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/RetrySampleItemWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/RetrySampleItemWriter.java @@ -1,6 +1,6 @@ package org.springframework.batch.sample.item.writer; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; /** * Simulates temporary output trouble - requires to diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/TradeWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/TradeWriter.java index 1f28eab2d..3dd853908 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/TradeWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/item/writer/TradeWriter.java @@ -18,7 +18,7 @@ package org.springframework.batch.sample.item.writer; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.batch.item.AbstractItemWriter; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.sample.dao.TradeDao; import org.springframework.batch.sample.domain.Trade; diff --git a/spring-batch-samples/src/main/resources/jobs/multiResourceJob.xml b/spring-batch-samples/src/main/resources/jobs/multiResourceJob.xml index 7b4fe1886..58c463e45 100644 --- a/spring-batch-samples/src/main/resources/jobs/multiResourceJob.xml +++ b/spring-batch-samples/src/main/resources/jobs/multiResourceJob.xml @@ -35,7 +35,7 @@ + class="org.springframework.batch.item.file.SortedMultiResourceItemReader"> diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/dao/FlatFileOrderWriterTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/dao/FlatFileOrderWriterTests.java index 2770b1eb2..b78907225 100644 --- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/dao/FlatFileOrderWriterTests.java +++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/dao/FlatFileOrderWriterTests.java @@ -9,9 +9,9 @@ import java.util.Map; import junit.framework.TestCase; -import org.springframework.batch.item.AbstractItemWriter; import org.springframework.batch.item.ItemWriter; import org.springframework.batch.item.file.transform.LineAggregator; +import org.springframework.batch.item.support.AbstractItemWriter; import org.springframework.batch.sample.StubLineAggregator; import org.springframework.batch.sample.domain.Address; import org.springframework.batch.sample.domain.BillingInfo;