RESOLVED - issue BATCH-161: OutputSource still extends ResourceLifecycle

http://opensource.atlassian.com/projects/spring/browse/BATCH-161
This commit is contained in:
dsyer
2007-10-10 09:46:11 +00:00
parent 9681c485aa
commit 964f04af59
3 changed files with 4 additions and 5 deletions

View File

@@ -16,8 +16,6 @@
package org.springframework.batch.io;
import org.springframework.batch.item.ResourceLifecycle;
/**
* Basic interface for generic output operations. Class implementing this
* interface will be responsible for serializing objects to output source.
@@ -26,7 +24,7 @@ import org.springframework.batch.item.ResourceLifecycle;
*
* @author Dave Syer
*/
public interface OutputSource extends ResourceLifecycle {
public interface OutputSource {
/**
* Writes provided value object to an output stream or similar.

View File

@@ -62,7 +62,7 @@ import org.springframework.util.Assert;
* @author Robert Kasanicky
* @author Dave Syer
*/
public class FlatFileOutputSource implements OutputSource, Restartable, StatisticsProvider, InitializingBean,
public class FlatFileOutputSource implements OutputSource, ResourceLifecycle, Restartable, StatisticsProvider, InitializingBean,
DisposableBean {
/**

View File

@@ -16,6 +16,7 @@ import javax.xml.stream.XMLStreamException;
import org.springframework.batch.io.OutputSource;
import org.springframework.batch.io.support.FileUtils;
import org.springframework.batch.item.ResourceLifecycle;
import org.springframework.batch.repeat.synch.BatchTransactionSynchronizationManager;
import org.springframework.batch.restart.GenericRestartData;
import org.springframework.batch.restart.RestartData;
@@ -40,7 +41,7 @@ import org.springframework.util.CollectionUtils;
* @author Peter Zozom
*
*/
public class StaxEventWriterOutputSource implements OutputSource, Restartable,
public class StaxEventWriterOutputSource implements OutputSource, ResourceLifecycle, Restartable,
StatisticsProvider, InitializingBean, DisposableBean {
// default encoding