diff --git a/infrastructure/src/main/java/org/springframework/batch/io/OutputSource.java b/infrastructure/src/main/java/org/springframework/batch/io/OutputSource.java index bfcf8d8f9..0e96720ab 100644 --- a/infrastructure/src/main/java/org/springframework/batch/io/OutputSource.java +++ b/infrastructure/src/main/java/org/springframework/batch/io/OutputSource.java @@ -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. diff --git a/infrastructure/src/main/java/org/springframework/batch/io/file/support/FlatFileOutputSource.java b/infrastructure/src/main/java/org/springframework/batch/io/file/support/FlatFileOutputSource.java index 4fdebc378..333d11c8a 100644 --- a/infrastructure/src/main/java/org/springframework/batch/io/file/support/FlatFileOutputSource.java +++ b/infrastructure/src/main/java/org/springframework/batch/io/file/support/FlatFileOutputSource.java @@ -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 { /** diff --git a/infrastructure/src/main/java/org/springframework/batch/io/stax/StaxEventWriterOutputSource.java b/infrastructure/src/main/java/org/springframework/batch/io/stax/StaxEventWriterOutputSource.java index b1b56bcff..e1b639987 100644 --- a/infrastructure/src/main/java/org/springframework/batch/io/stax/StaxEventWriterOutputSource.java +++ b/infrastructure/src/main/java/org/springframework/batch/io/stax/StaxEventWriterOutputSource.java @@ -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