Removed the close() method from ItemWriter - it shadows ItemStream so use that interface if needed.

This commit is contained in:
dsyer
2008-02-05 11:37:03 +00:00
parent f41487b32b
commit 05e0804020
5 changed files with 0 additions and 44 deletions

View File

@@ -287,8 +287,4 @@ public class HibernateAwareItemWriter implements ItemWriter, RepeatInterceptor,
}
public void close() throws Exception {
delegate.close();
}
}

View File

@@ -38,10 +38,4 @@ public interface ItemWriter {
*/
public void write(Object item) throws Exception;
/**
* Close the writer, allowing all allocated resources to be cleaned up.
*
* @throws Exception
*/
void close() throws Exception;
}

View File

@@ -26,6 +26,4 @@ import org.springframework.batch.item.ItemWriter;
*/
public abstract class AbstractItemWriter implements ItemWriter{
public void close() throws Exception {
}
}

View File

@@ -53,9 +53,4 @@ public class DelegatingItemWriter implements ItemWriter, Skippable, Initializing
Assert.notNull(writer);
}
// YODO: remove
public void close() throws Exception {
writer.close();
}
}