RESOLVED - issue BATCH-161: OutputSource still extends ResourceLifecycle
http://opensource.atlassian.com/projects/spring/browse/BATCH-161
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user