From 17963b33864a0e95e487865a534a05e3686b5d46 Mon Sep 17 00:00:00 2001 From: lucasward Date: Mon, 7 Jan 2008 15:49:17 +0000 Subject: [PATCH] BATCH-269:Moved PassThroughFieldSetMapper from Samples to Infrastructure. --- .../mapping/PassThroughFieldSetMapper.java | 38 ------------------- .../main/resources/jobs/multilineOrderIo.xml | 2 +- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 spring-batch-samples/src/main/java/org/springframework/batch/sample/mapping/PassThroughFieldSetMapper.java diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/mapping/PassThroughFieldSetMapper.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/mapping/PassThroughFieldSetMapper.java deleted file mode 100644 index 44c8d5a3b..000000000 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/mapping/PassThroughFieldSetMapper.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2006-2007 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.springframework.batch.sample.mapping; - -import org.springframework.batch.io.file.mapping.FieldSet; -import org.springframework.batch.io.file.mapping.FieldSetMapper; - -/** - * Pass through {@link FieldSetMapper} useful for - * passing a fieldset back from a FlatFileInputsource rather - * than a mapped object. - * - * @author Lucas Ward - * - */ -public class PassThroughFieldSetMapper implements FieldSetMapper { - - /* (non-Javadoc) - * @see org.springframework.batch.io.file.FieldSetMapper#mapLine(org.springframework.batch.io.file.FieldSet) - */ - public Object mapLine(FieldSet fs) { - return fs; - } - -} diff --git a/spring-batch-samples/src/main/resources/jobs/multilineOrderIo.xml b/spring-batch-samples/src/main/resources/jobs/multilineOrderIo.xml index 9e1c237c0..111fffde8 100644 --- a/spring-batch-samples/src/main/resources/jobs/multilineOrderIo.xml +++ b/spring-batch-samples/src/main/resources/jobs/multilineOrderIo.xml @@ -14,7 +14,7 @@ - +